WO2015196975A1 - Method and system for generating user name - Google Patents

Method and system for generating user name Download PDF

Info

Publication number
WO2015196975A1
WO2015196975A1 PCT/CN2015/082091 CN2015082091W WO2015196975A1 WO 2015196975 A1 WO2015196975 A1 WO 2015196975A1 CN 2015082091 W CN2015082091 W CN 2015082091W WO 2015196975 A1 WO2015196975 A1 WO 2015196975A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
name
selection
generating
user name
Prior art date
Application number
PCT/CN2015/082091
Other languages
French (fr)
Chinese (zh)
Inventor
吴凡
杜旺喜
Original Assignee
广州金山网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州金山网络科技有限公司 filed Critical 广州金山网络科技有限公司
Publication of WO2015196975A1 publication Critical patent/WO2015196975A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/48Message addressing, e.g. address format or anonymous messages, aliases

Definitions

  • the present application relates to the field of computer application technologies, and in particular, to a method and system for generating a username.
  • the embodiment of the present application provides a method and a system for generating a user name, which can solve the problem that the process of generating a user name in the prior art is cumbersome and inconvenient.
  • the embodiment of the present application provides a method for generating a username, including:
  • the selection item includes generating a user name by nickname and generating a user name by name;
  • a username is automatically generated for the user.
  • the method for generating a user name provided by the embodiment of the present application, by receiving an instruction for registering a user name, and providing a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name
  • the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name.
  • Convenience problems, and compared to the prior art also increase the diversity of user choices and enhance the user experience.
  • an embodiment of the present application provides a system for generating a username, including:
  • An instruction receiving unit configured to receive an instruction for a user to register a user name
  • a selection providing unit configured to provide, according to an instruction of the registered user name received by the instruction receiving unit, a selection item of a user name generation manner; the selection item includes generating a user name by a nickname and generating a user name by a name;
  • Selecting a receiving unit configured to receive a selection of one of the selection items provided by the user for the selection item providing unit
  • the user name generating unit is configured to automatically generate a username for the user according to the selection.
  • the system for generating a user name receives an instruction for registering a user name by using a user, and provides a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name. After selecting one of the options, the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name. Convenience problems, and compared to the prior art, also increase the diversity of user choices and enhance the user experience.
  • an embodiment of the present application further provides an electronic device, including: a processor, a memory, a communication interface, and a bus;
  • the processor, the memory, and the communication interface are connected by the bus and complete each other Communication between
  • the memory stores executable program code
  • the processor by reading the executable program code stored in the memory, runs a program corresponding to the executable program code for executing any method for generating a user name provided by the embodiment of the present application.
  • the embodiment of the present application further provides a storage medium for storing an application, and the application is used to execute any method for generating a user name provided by the embodiment of the present application.
  • the embodiment of the present application further provides an application for performing any method for generating a username provided by the embodiment of the present application.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for generating a user name according to the present application
  • FIG. 2 is a schematic flow chart of an embodiment of S4 in FIG. 1;
  • FIG. 3 is a partial flow chart of another embodiment of a method for generating a user name according to the present application.
  • FIG. 4 is a schematic flow chart of another embodiment of S4 in FIG. 1;
  • FIG. 5 is a partial schematic flowchart of another embodiment of a method for generating a username in the application
  • FIG. 6 is a schematic flow chart of another embodiment of S4 of FIG. 1;
  • FIG. 7 is a partial flow chart of another embodiment of a method for generating a user name according to the present application.
  • FIG. 8 is a block diagram showing a structure of a system for generating a username in the present application.
  • FIG. 9 is a block diagram showing an embodiment of a user name generating unit in FIG. 8.
  • FIG. 10 is a block diagram showing another structure of a system for generating a username in the present application.
  • FIG. 11 is a block diagram showing another embodiment of a user name generating unit in FIG. 8;
  • FIG. 12 is a block diagram showing the structure of an embodiment of the first name and the first name subunit in FIG. 11;
  • FIG. 13 is a block diagram showing another structure of a system for generating a username in the present application.
  • FIG. 14 is a block diagram showing another structure of another embodiment of the user name generating unit of FIG. 8; FIG.
  • FIG. 15 is a block diagram showing another embodiment of a system for generating a username in the present application.
  • an embodiment of the present application provides a method for generating a username, including:
  • the user is provided with a selection of a username generation manner according to the instruction of registering the username; the selection includes generating a username by a nickname and generating a username by a name;
  • the method for generating a user name provided by the embodiment of the present application, by receiving an instruction for registering a user name, and providing a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name
  • the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name.
  • Convenience problems, and compared to the prior art also increase the diversity of user choices and enhance the user experience.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username (S4) for the user according to the selection includes:
  • the pre-established character can be obtained. Randomly select any finite number of strings in the string library, or you can set the default selection rules, such as randomly selecting two strings at a time.
  • the automatically generating a nickname for the user according to the selected at least one character string includes:
  • the selected string is one, the selected string is directly used as the nickname of the user; or
  • the two or more character strings are combined to generate the user's nickname;
  • the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected.
  • the latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
  • the two characters are selected from the pre-established string library, which are "Garfield” and "SpongeBabies", then the two characters can be selected.
  • the "Garfield SpongeBob” generated by the string combination is used as the nickname automatically generated for the user; the "Garfield” can also be split into “Garfield” and “Cat”, and the “SpongeBob” is split into “Sponge” and “Baby” “Add Garfield” and “Baby” to create a "Garfield Baby” as a nickname automatically generated for the user; you can also split “Garfield” into “Garfield” and “Cat”, then select “ “Garfield SpongeBob” generated by Garfield and SpongeBob is a nickname automatically generated for the user.
  • the user is automatically generated with a nickname by using different split combinations, which can ensure the diversity of the nickname generated by the user.
  • split combinations There are many ways to split the combination, which will not be described in detail in this application.
  • Words, words, and/or phrases that are used more frequently than the first threshold may be collected from the website on a regular basis, or words, words, and/or phrases of hotspots obtained through collection and statistics may be directly used.
  • a word, a word, and/or a phrase whose usage frequency is greater than a first threshold is obtained from a website, and the obtained list of words, words, and/or phrases formed into a string is saved in a string library. It is convenient to generate a relatively new nickname for the user.
  • the receiving user selects one of the selection items, including:
  • the user is selected to generate a username selection by name.
  • the automatically generating a username (S4) for the user according to the selection includes:
  • the user when the user selects to generate a user name by name, by selecting a first name and a first name from a pre-established name database, and combining the selected last name and the name to generate the user's name, the user can be conveniently Generate a name.
  • the selecting a first name and a first name from the pre-established name database according to the selection includes:
  • a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
  • the selecting a name from the pre-established second library includes:
  • Select at least two strings from the pre-established second library and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split
  • the at least one substring after the division is combined with at least one of the selected strings to generate a name.
  • a different split combination is used to generate a name for the user, which can ensure the diversity of the names generated by the user, and then can ensure the diversity of the names automatically generated by the user.
  • the manner of selecting a name from the pre-established second library is the same as the method for automatically generating a nickname for the user in the foregoing embodiment, and there are many different types, which are not described in detail in this application.
  • selecting a last name from a pre-established first library from the pre-established second library before selecting a name, it also includes:
  • a word, a word, and/or a phrase whose usage frequency is greater than a second threshold is obtained from a website, and the obtained list of words, words, and/or phrases formed into a string is saved in the second library, It is convenient to generate relatively new names for users.
  • the method further includes: pre-setting a character string length of the user name before automatically generating a user name for the user according to the selecting;
  • the automatically generating a user name for the user according to the selection includes: automatically generating, according to the selection and the string length of the preset user name, the character that meets the preset setting for the user.
  • the username of the string length includes: setting the character string length of the user name in advance, it is convenient to automatically generate a user name that matches the length of the character string set in advance.
  • the method before the automatically generating the username for the user according to the selecting, the method further includes: presetting the character that the username should include a string; wherein the automatically generating a username for the user according to the selection comprises: A user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
  • the method by setting a character string to be included in the user name in advance, it is possible to easily generate a user name including the character string set in advance for the user.
  • the selecting further comprises: generating a username according to a predetermined style; wherein the words, words and/or phrases to be acquired are formed
  • the list of strings is stored in the string library or the second library, including: classifying the obtained words, words, and/or phrases according to a predetermined style, and saving the formed list of different styles of strings in the string.
  • Library or second library including: classifying the obtained words, words, and/or phrases according to a predetermined style, and saving the formed list of different styles of strings in the string.
  • automatically generating a user name for the user including: if the user selects to generate a user name by nickname or selects a user name by name, and selects to generate a user name according to a predetermined style, according to the selection, The user automatically generates a username that conforms to the predetermined style.
  • the formed string list of different styles is saved in a string library or a second library, and the user is provided according to a predetermined style.
  • Generate a user name selection and when the user selects a predetermined style to generate a user name, according to the specific style selected by the user, select a character string corresponding to the style from the string library or the second library to generate a nickname or a name for the user, which is convenient
  • the user experience is automatically generated by automatically generating a user-selected user name for the user.
  • the automatically generating a username (S4) for the user according to the selecting includes:
  • S50 Receive the user selection of the at least two user names, and use the user name selected by the user as the user name of the user.
  • the user experience can be enhanced by automatically generating at least two user names for the user and using the user name selected by the user as the user name according to the user's selection.
  • the method further includes:
  • the automatically generated user name is the same as the existing user name, such as determining whether the automatically generated user name is related to the user to be registered.
  • the existing user names are the same, and when the automatically generated user name is the same as the existing user name, the automatically generated user name is discarded, and the user name is automatically generated for the user, which can be guaranteed to be generated.
  • the uniqueness of the username is the same.
  • an embodiment of the present application provides a system for generating a user name, including: an instruction receiving unit 1 for receiving an instruction for a user to register a user name, and an option providing unit 2 for receiving the unit 1 according to the instruction.
  • Receiving an instruction for registering a user name providing the user with a selection of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name; and selecting a receiving unit 3, configured to receive the user for the selection item
  • the selection of one of the selection items provided by the unit 2 is provided; the user name generation unit 4 is configured to automatically generate a user name for the user according to the selection.
  • the system for generating a user name receives an instruction for registering a user name by using a user, and provides a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name. After selecting one of the options, the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name. Convenience problems, and compared to the prior art, also increase the diversity of user choices and enhance the user experience.
  • the selection receiving unit is configured to receive a selection of a user name selection item by a nickname in a selection item provided by the selection item providing unit by a user.
  • the user name generating unit 4 includes: a first character string selecting sub-unit 40, configured to select at least one character string from a pre-established string library according to the selection; a string of words, words or phrases is stored in the string library; the nickname generating sub-unit 41 is configured to automatically select the at least one character string selected by the first string selecting sub-unit 40 as the user. Generate a nickname.
  • any limited number of character strings may be randomly selected from the pre-established string library, or a default selection rule may be set, for example, two strings are randomly selected at a time. .
  • the nickname generating subunit includes: a first nickname generating module, configured to: if the first string selects a string selected by the subunit For one time, directly use the selected string as the nickname of the user; or
  • a second nickname generating module configured to: if the character string selected by the first character string selection subunit is two or more, combine the two or more character strings to generate a nickname of the user; or
  • a third nickname generating module configured to: when the first character string selection sub-unit selects two or more character strings, split the selected at least one character string into at least two sub-strings, and select at least two after splitting Combining two substrings to generate a nickname of the user, or selecting at least one of the split substrings and at least one of the string selected by the first string selection module to generate the nickname of the user .
  • the user is automatically generated with a nickname by using different split combinations, which can ensure the diversity of the nickname generated by the user.
  • split combinations There are many ways to split the combination, which will not be described in detail in this application.
  • the method further includes:
  • the first obtaining sub-unit 42 is configured to: before the first character string selecting sub-unit 40 selects at least one character string from the pre-established string library according to the selection, acquiring the usage frequency from the website is greater than the first threshold Words, words and/or phrases; words, words and/or phrases that are frequently used more frequently than the first threshold may be collected from the website on a regular basis, or words, words and/or phrases of hotspots obtained through collection and statistics may be directly used. ;
  • the first saving sub-unit 43 is configured to save the list of words, words and/or phrases formed by the first obtaining sub-unit 42 in a string library.
  • a word, a word, and/or a phrase whose usage frequency is greater than a first threshold is obtained from a website, and the obtained list of words, words, and/or phrases formed into a string is saved in a string library. It is convenient to generate a relatively new nickname for the user.
  • the selection receiving unit is configured to receive a selection of a user name selection item by name generated by a user for the selection item providing unit.
  • the user name generating unit 4 includes: a first name and a name selecting sub-unit 44, for selecting a first name and a first name from a pre-established name list according to the selection;
  • the generating subunit 45 is configured to combine the last name and the name selected by the last name and the name selecting subunit 44 to generate the name of the user.
  • the user when the user selects to generate a user name by name, by selecting a first name and a first name from a pre-established name database, and combining the selected last name and the name to generate the user's name, the user can be conveniently Generate a name.
  • the first name and first name selection sub-unit 44 includes a surname selection module 440 for pre-establishing from the selection according to the selection.
  • a first name is selected in the first library; wherein the first library holds a list of names of people;
  • a name selection module 441 is configured to select a name from a second library that is pre-established; wherein the second library holds A string of words, words, or phrases.
  • the name selection module includes:
  • the first one selects a submodule for selecting a string from the pre-established second library and using the selected string as a name;
  • a second selection submodule configured to select at least two strings from the pre-established second library, and combine the at least two strings to generate a name
  • the third selected sub-module is configured to select at least two strings from the pre-established second library, and split the selected at least one string into at least two sub-strings, and select at least two sub-characters after the split.
  • the string is combined to generate a name, or at least one of the split substrings is selected to be combined with at least one of the selected strings to generate a name.
  • a different split combination is used to generate a name for the user, which can ensure the diversity of the names generated by the user, and then can ensure the diversity of the names automatically generated by the user.
  • the manner of selecting a name from the pre-established second library is the same as the method for automatically generating a nickname for the user in the foregoing embodiment, and there are many different types, which are not described in detail in this application.
  • the method further includes: a second saving subunit 46, configured to save the list of names of people in the first library, such as The last name is stored in the first library; the second obtaining subunit 47 is configured to obtain, from the website, words, words and/or phrases whose usage frequency is greater than a second threshold; and a third saving subunit 48 for using the second The list of words, words, and/or phrases formed by the obtaining sub-unit 47 is stored in the second library.
  • a second saving subunit 46 configured to save the list of names of people in the first library, such as The last name is stored in the first library
  • the second obtaining subunit 47 is configured to obtain, from the website, words, words and/or phrases whose usage frequency is greater than a second threshold
  • a third saving subunit 48 for using the second
  • the list of words, words, and/or phrases formed by the obtaining sub-unit 47 is stored in the second library.
  • the method further includes: a first setting unit, configured to: before the user name generating unit automatically generates a user name for the user according to the selecting
  • the user name generating unit is configured to automatically generate a string length for the user according to the selection and a character string length of the user name preset by the first setting unit. A username that matches the length of the pre-set string.
  • the method further includes: a second setting unit, configured to: before the username generation unit automatically generates a username for the user according to the selection Presetting the character string that the user name should include; wherein the user name generating unit is configured to automatically generate the inclusion for the user according to the selection and the character string preset by the second setting unit.
  • the user name of the string set in advance In the present embodiment, by setting a character string to be included in the user name in advance, it is possible to easily generate a user name including the character string set in advance for the user.
  • the selecting further includes: generating a username according to a predetermined style; wherein the first saving subunit is configured to use the first obtaining The words, words and/or phrases acquired by the subunit are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library; or the third saving subunit is used for Sorting the words, words, and/or phrases acquired by the second obtaining subunit according to a predetermined style, and saving the formed list of different styles of strings in the second library; the user name generating unit For generating a user name by nickname or selecting a user name by name, and selecting to generate a user name according to a predetermined style, according to the selection, automatically generating a user name conforming to the predetermined style for the user.
  • the formed string list of different styles is saved in a string library or a second library, and the user is provided according to a predetermined style.
  • Generate a selection of usernames and when the user chooses to generate a username in a predetermined style According to the specific style selected by the user, the string corresponding to the style is selected from the string library or the second library to generate a nickname or a name for the user, which can automatically generate a user name of the user-selected style for the user, thereby enhancing the user experience.
  • the user name generating unit 4 includes: a username generating subunit 49, configured to The user automatically generates at least two user names; the user name selection sub-unit 50 is configured to receive the user's selection of at least two user names automatically generated by the user name generation sub-unit 49, and use the user name selected by the user as the The user's username.
  • the user experience can be enhanced by automatically generating at least two user names for the user and using the user name selected by the user as the user name according to the user's selection.
  • the method further includes: a determining unit 5, configured to automatically, for the user, the user name generating unit 4 according to the selecting After the user name is generated, it is determined whether the automatically generated user name is the same as the existing user name; the notification unit 6 is configured to, according to the result of the determining by the determining unit 5, the automatically generated user name and the existing If the user name is the same, the user name generating unit 4 is notified to automatically generate a new user name for the user.
  • a determining unit 5 configured to automatically, for the user, the user name generating unit 4 according to the selecting After the user name is generated, it is determined whether the automatically generated user name is the same as the existing user name
  • the notification unit 6 is configured to, according to the result of the determining by the determining unit 5, the automatically generated user name and the existing If the user name is the same, the user name generating unit 4 is notified to automatically generate a new user name for the user.
  • the automatically generated username is the same as the existing username, and the automatically generated username is associated with the existing username. At the same time, the automatically generated username is discarded, and the user name is automatically generated for the user, so that the uniqueness of the generated username can be guaranteed.
  • the embodiment of the present application further provides an electronic device, including: a processor, a memory, a communication interface, and a bus;
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor by reading the executable program code stored in the memory, to run a program corresponding to the executable program code, for performing the method for generating a user name provided by the embodiment of the present application, wherein
  • the method for generating a username provided by the application embodiment may include:
  • the selection item includes generating a user name by nickname and generating a user name by name;
  • a username is automatically generated for the user.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username for the user according to the selection including:
  • a nickname is automatically generated for the user according to the selected at least one character string.
  • the automatically generating the nickname for the user according to the selected at least one character string includes:
  • the selected string is one, the selected string is directly used as the nickname of the user; or
  • the two or more character strings are combined to generate the user's nickname;
  • the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected.
  • the latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
  • the method further includes:
  • the obtained list of words, words and/or phrases formed into a string is saved in a string library.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username for the user according to the selection including:
  • the selected last name and name are combined to generate the user's name.
  • selecting a first name and a first name from a pre-established name database including:
  • a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
  • the selecting a name from the pre-established second library includes:
  • Select at least two strings from the pre-established second library and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split
  • the at least one substring after the division is combined with at least one of the selected strings to generate a name.
  • the method includes:
  • the obtained list of words, words and/or phrases formed into a string is saved in the second library.
  • the method further includes:
  • the automatically generating a username for the user according to the selection including:
  • a user name that matches the length of the character string set in advance is automatically generated for the user.
  • the method further includes:
  • the automatically generating a username for the user according to the selection including:
  • a user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
  • the selecting further includes generating a username according to a predetermined style
  • the stored word, word and/or phrase forming a string list is stored in a string library, including:
  • the obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
  • the automatically generating a username for the user according to the selection including:
  • a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  • the selecting further includes generating a username according to a predetermined style
  • the storing the string, the word, and/or the phrase forming a string list in the second library includes:
  • the obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
  • the automatically generating a username for the user according to the selection including:
  • a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  • the automatically generating a username for the user according to the selecting includes:
  • the method further includes:
  • the user is automatically regenerated to generate a new username.
  • the embodiment of the present application further provides a storage medium for storing an application, where the application is used to execute the method for generating a user name provided by the embodiment of the present application, where the generated user name provided by the embodiment of the present application is generated.
  • the methods include:
  • the selection item includes generating a user name by nickname and generating a user name by name;
  • a username is automatically generated for the user.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username for the user according to the selection including:
  • a nickname is automatically generated for the user according to the selected at least one character string.
  • the automatically generating the nickname for the user according to the selected at least one character string includes:
  • the selected string is one, the selected string is directly used as the nickname of the user; or
  • the two or more character strings are combined to generate the user's nickname;
  • the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected.
  • the latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
  • the method further includes:
  • the obtained list of words, words and/or phrases formed into a string is saved in a string library.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username for the user according to the selection including:
  • the selected last name and name are combined to generate the user's name.
  • selecting a first name and a first name from a pre-established name database including:
  • a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
  • the selecting a name from the pre-established second library includes:
  • Select at least two strings from the pre-established second library and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split
  • the at least one substring after the division is combined with at least one of the selected strings to generate a name.
  • the method includes:
  • the obtained list of words, words and/or phrases formed into a string is saved in the second library.
  • the automatically generating a username for the user according to the selection including:
  • a user name that matches the length of the character string set in advance is automatically generated for the user.
  • the method further includes:
  • the automatically generating a username for the user according to the selection including:
  • a user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
  • the selecting further includes generating a username according to a predetermined style
  • the stored word, word and/or phrase forming a string list is stored in a string library, including:
  • the obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
  • the automatically generating a username for the user according to the selection including:
  • a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  • the selecting further includes generating a username according to a predetermined style
  • the storing the string, the word, and/or the phrase forming a string list in the second library includes:
  • the obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
  • the automatically generating a username for the user according to the selection including:
  • a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  • the automatically generating a username for the user according to the selecting includes:
  • the method further includes:
  • the user is automatically regenerated to generate a new username.
  • the embodiment of the present application further provides an application program for performing the method for generating a user name provided by the embodiment of the present application, where the method for generating a user name provided by the embodiment of the present application includes:
  • the selection item includes generating a user name by nickname and generating a user name by name;
  • a username is automatically generated for the user.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username for the user according to the selection including:
  • a nickname is automatically generated for the user according to the selected at least one character string.
  • the automatically generating the nickname for the user according to the selected at least one character string includes:
  • the selected string is one, the selected string is directly used as the nickname of the user; or
  • the two or more character strings are combined to generate the user's nickname;
  • the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected.
  • the latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
  • the method further includes:
  • the obtained list of words, words and/or phrases formed into a string is saved in a string library.
  • the receiving user selects one of the selection items, including:
  • the automatically generating a username for the user according to the selection including:
  • the selected last name and name are combined to generate the user's name.
  • selecting a first name and a first name from a pre-established name database including:
  • a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
  • the selecting a name from the pre-established second library includes:
  • Select at least two strings from the pre-established second library and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split
  • the at least one substring after the division is combined with at least one of the selected strings to generate a name.
  • the method includes:
  • the obtained list of words, words and/or phrases formed into a string is saved in the second library.
  • the method further includes:
  • the automatically generating a username for the user according to the selection including:
  • a user name that matches the length of the character string set in advance is automatically generated for the user.
  • the method further includes:
  • the automatically generating a username for the user according to the selection including:
  • a user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
  • the selecting further includes generating a username according to a predetermined style
  • the stored word, word and/or phrase forming a string list is stored in a string library, including:
  • the obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
  • the automatically generating a username for the user according to the selection including:
  • a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  • the selecting further includes generating a username according to a predetermined style
  • the storing the string, the word, and/or the phrase forming a string list in the second library includes:
  • the obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
  • the automatically generating a username for the user according to the selection including:
  • a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  • the automatically generating a username for the user according to the selecting includes:
  • the method further includes:
  • the user is automatically regenerated to generate a new username.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

A method and system for generating a user name, which relate to the technical field of computer applications and can solve the problem of relatively complex and inconvenient process of generating a user name in the prior art. The method for generating a user name comprises: receiving an instruction of registering a user name from a user (S1); providing options of user name generation modes for the user (S2); receiving the choice of the user on one of the options (S3); and automatically generating the user name for the user (S4). The system for generating a user name comprises: an instruction receiving unit, for receiving an instruction of registering a user name from a user; an option providing unit, for providing options of user name generation modes for the user; a choice receiving unit, for receiving the choice of the user on one of the options; and a user name generation unit, for automatically generating the user name for the user. The method and the system are applicable to the occasion of automatically generating user names.

Description

一种生成用户名的方法及系统Method and system for generating user name
本申请要求于2014年06月24日提交中国专利局、申请号为201410286209.9申请名称为“一种生成用户名的方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application entitled "A Method and System for Generating a User Name" to the Chinese Patent Office, filed on Jun. 24, 2014, the entire disclosure of which is hereby incorporated by reference. in.
技术领域Technical field
本申请涉及计算机应用技术领域,尤其涉及一种生成用户名的方法及系统。The present application relates to the field of computer application technologies, and in particular, to a method and system for generating a username.
背景技术Background technique
目前一般普通用户都喜欢对某些应用或者文章或者帖子之类的发表自己的看法,一般网站为了用户管理的便利性以及服务的多样性,通常需要有个用户名来标识用户。然而,用户在很多情况下的评论参与都发生在即兴状况,这个时候用户并不一定能马上想到一个好的用户名,或者当在参与评论的人员很多的情况下,很容易就发生用户想到的用户名与已存在的用户名相同的情况。很多时候用户只是希望发表个想法或者看法,并不想花时间去做这些多余的操作。At present, ordinary users like to express their opinions on certain applications or articles or posts. Generally, for the convenience of user management and the diversity of services, a general website usually needs to have a user name to identify the user. However, the user's participation in commenting in many cases occurs in an impromptu situation. At this time, the user may not immediately think of a good user name, or when there are many people involved in the comment, it is easy for the user to think of it. The case where the username is the same as the existing username. Many times users just want to post an idea or opinion and don't want to take the time to do these extra operations.
针对上述问题,目前有如下解决方案:注册论坛的时候往往会有第三方的帐号(如QQ、微博等)登陆,这个时候会调用此类系统开放的接口,获取用户在此类系统帐号上的用户名来充当当前登陆系统的用户名。这种方法虽然起到标识用户的作用,但是有些用户并不想将QQ、微博这类经常使用的应用软件的个人信息用于一些阶段或即时应用的场合。In response to the above problems, there are currently the following solutions: When registering a forum, there will often be a third-party account (such as QQ, Weibo, etc.) to log in. At this time, the open interface of such a system will be called to obtain the user's account on such a system. The username is used to act as the username for the current login system. Although this method plays a role in identifying users, some users do not want to use the personal information of frequently used applications such as QQ and Weibo for some stages or instant applications.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种生成用户名的方法及系统,能够解决现有技术生成用户名的过程比较繁琐和不方便的问题。In view of this, the embodiment of the present application provides a method and a system for generating a user name, which can solve the problem that the process of generating a user name in the prior art is cumbersome and inconvenient.
为达到上述目的,本申请的实施例采用如下技术方案: To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
一方面,本申请实施例提供一种生成用户名的方法,包括:In one aspect, the embodiment of the present application provides a method for generating a username, including:
接收用户注册用户名的指令;An instruction to receive a user registered username;
根据所述注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;Determining, according to the instruction of registering the user name, a selection item of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name;
接收用户对所述选择项中一个选择项的选择;Receiving a user selection of one of the selections;
根据所述选择,为所述用户自动生成用户名。Based on the selection, a username is automatically generated for the user.
本申请实施例提供的生成用户名的方法,通过接收用户注册用户名的指令,并根据所述注册用户名的指令,向用户提供用户名生成方式的选择项,并在用户对所述选择项中的一个选择项进行选择之后,根据用户的选择为所述用户自动生成用户名,不仅解决了现有技术用户苦思冥想用户名比较麻烦和需要使用用户经常使用的应用软件的帐号作为用户名比较不方便的问题,而且较之现有技术,也增加了用户选择的多样性,增强了用户体验。The method for generating a user name provided by the embodiment of the present application, by receiving an instruction for registering a user name, and providing a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name After selecting one of the options, the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name. Convenience problems, and compared to the prior art, also increase the diversity of user choices and enhance the user experience.
另一方面,本申请实施例提供一种生成用户名的系统,包括:On the other hand, an embodiment of the present application provides a system for generating a username, including:
指令接收单元,用于接收用户注册用户名的指令;An instruction receiving unit, configured to receive an instruction for a user to register a user name;
选择项提供单元,用于根据所述指令接收单元接收到的注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;a selection providing unit, configured to provide, according to an instruction of the registered user name received by the instruction receiving unit, a selection item of a user name generation manner; the selection item includes generating a user name by a nickname and generating a user name by a name;
选择接收单元,用于接收用户对所述选择项提供单元提供的选择项中一个选择项的选择;Selecting a receiving unit, configured to receive a selection of one of the selection items provided by the user for the selection item providing unit;
用户名生成单元,用于根据所述选择,为所述用户自动生成用户名。The user name generating unit is configured to automatically generate a username for the user according to the selection.
本申请实施例提供的生成用户名的系统,通过接收用户注册用户名的指令,并根据所述注册用户名的指令,向用户提供用户名生成方式的选择项,并在用户对所述选择项中的一个选择项进行选择之后,根据用户的选择为所述用户自动生成用户名,不仅解决了现有技术用户苦思冥想用户名比较麻烦和需要使用用户经常使用的应用软件的帐号作为用户名比较不方便的问题,而且较之现有技术,也增加了用户选择的多样性,增强了用户体验。The system for generating a user name provided by the embodiment of the present application receives an instruction for registering a user name by using a user, and provides a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name. After selecting one of the options, the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name. Convenience problems, and compared to the prior art, also increase the diversity of user choices and enhance the user experience.
另一方面,本申请实施例还提供了一种电子设备,包括:处理器、存储器、通信接口和总线;On the other hand, an embodiment of the present application further provides an electronic device, including: a processor, a memory, a communication interface, and a bus;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互 间的通信;The processor, the memory, and the communication interface are connected by the bus and complete each other Communication between
所述存储器存储可执行程序代码;The memory stores executable program code;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行本申请实施例所提供的任意一种生成用户名的方法。The processor, by reading the executable program code stored in the memory, runs a program corresponding to the executable program code for executing any method for generating a user name provided by the embodiment of the present application.
另一方面,本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于执行本申请实施例所提供的任意一种生成用户名的方法。On the other hand, the embodiment of the present application further provides a storage medium for storing an application, and the application is used to execute any method for generating a user name provided by the embodiment of the present application.
另一方面,本申请实施例还提供了一种应用程序,用于执行本申请实施例所提供的任意一种生成用户名的方法。On the other hand, the embodiment of the present application further provides an application for performing any method for generating a username provided by the embodiment of the present application.
附图说明DRAWINGS
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application and the technical solutions of the prior art, the following description of the embodiments and the drawings used in the prior art will be briefly introduced. Obviously, the drawings in the following description are only Some embodiments of the application may also be used to obtain other figures from those of ordinary skill in the art without departing from the scope of the invention.
图1为本申请生成用户名的方法一实施例的流程示意图;1 is a schematic flowchart of an embodiment of a method for generating a user name according to the present application;
图2为图1中S4一实施例的流程示意图;2 is a schematic flow chart of an embodiment of S4 in FIG. 1;
图3为本申请生成用户名的方法另一实施例的部分流程示意图;3 is a partial flow chart of another embodiment of a method for generating a user name according to the present application;
图4为图1中S4另一实施例的流程示意图;4 is a schematic flow chart of another embodiment of S4 in FIG. 1;
图5为本申请生成用户名的方法另一实施例的部分流程示意图;FIG. 5 is a partial schematic flowchart of another embodiment of a method for generating a username in the application; FIG.
图6为图1中S4另一实施例的流程示意图;6 is a schematic flow chart of another embodiment of S4 of FIG. 1;
图7为本申请生成用户名的方法另一实施例的部分流程示意图;FIG. 7 is a partial flow chart of another embodiment of a method for generating a user name according to the present application;
图8为本申请生成用户名的系统一实施例的方框结构示意图;8 is a block diagram showing a structure of a system for generating a username in the present application;
图9为图8中用户名生成单元一实施例的方框结构示意图;9 is a block diagram showing an embodiment of a user name generating unit in FIG. 8;
图10为本申请生成用户名的系统另一实施例的方框结构示意图;10 is a block diagram showing another structure of a system for generating a username in the present application;
图11为图8中用户名生成单元另一实施例的方框结构示意图;11 is a block diagram showing another embodiment of a user name generating unit in FIG. 8;
图12为图11中姓和名选取子单元一实施例的方框结构示意图;12 is a block diagram showing the structure of an embodiment of the first name and the first name subunit in FIG. 11;
图13为本申请生成用户名的系统另一实施例的方框结构示意图;13 is a block diagram showing another structure of a system for generating a username in the present application;
图14为图8中用户名生成单元另一实施例的方框结构示意图; FIG. 14 is a block diagram showing another structure of another embodiment of the user name generating unit of FIG. 8; FIG.
图15为本申请生成用户名的系统另一实施例的方框结构示意图。FIG. 15 is a block diagram showing another embodiment of a system for generating a username in the present application.
具体实施方式detailed description
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
参看图1,本申请的实施例提供一种生成用户名的方法,包括:Referring to FIG. 1, an embodiment of the present application provides a method for generating a username, including:
S1、接收用户注册用户名的指令;S1. Receive an instruction for registering a user name of the user;
S2、根据所述注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;S2. The user is provided with a selection of a username generation manner according to the instruction of registering the username; the selection includes generating a username by a nickname and generating a username by a name;
S3、接收用户对所述选择项中一个选择项的选择;S3. Receive a user selection of one of the selection items;
S4、根据所述选择,为所述用户自动生成用户名。S4. Automatically generate a username for the user according to the selection.
本申请实施例提供的生成用户名的方法,通过接收用户注册用户名的指令,并根据所述注册用户名的指令,向用户提供用户名生成方式的选择项,并在用户对所述选择项中的一个选择项进行选择之后,根据用户的选择为所述用户自动生成用户名,不仅解决了现有技术用户苦思冥想用户名比较麻烦和需要使用用户经常使用的应用软件的帐号作为用户名比较不方便的问题,而且较之现有技术,也增加了用户选择的多样性,增强了用户体验。The method for generating a user name provided by the embodiment of the present application, by receiving an instruction for registering a user name, and providing a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name After selecting one of the options, the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name. Convenience problems, and compared to the prior art, also increase the diversity of user choices and enhance the user experience.
可选地,在本申请生成用户名的方法的另一实施例中,所述接收用户对所述选择项中一个选择项的选择,包括:Optionally, in another embodiment of the method for generating a user name, the receiving user selects one of the selection items, including:
接收用户对按昵称生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by nickname;
参看图2,其中,所述根据所述选择,为所述用户自动生成用户名(S4),包括:Referring to FIG. 2, the automatically generating a username (S4) for the user according to the selection includes:
S40、根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;S40. Select at least one character string from the pre-established string library according to the selection; wherein the string library stores a character string composed of words, words or phrases;
S41、根据选取的所述至少一个字符串为所述用户自动生成昵称。S41. Automatically generate a nickname for the user according to the selected at least one character string.
本实施例中,在用户选择按昵称生成用户名时,可以从预先建立的字符 串库中随机选取任一有限数量的字符串,也可以设置默认的选取规则,比如一次随机选取两个字符串。In this embodiment, when the user selects to generate a user name by nickname, the pre-established character can be obtained. Randomly select any finite number of strings in the string library, or you can set the default selection rules, such as randomly selecting two strings at a time.
可选地,在本申请生成用户名的方法的另一实施例中,所述根据选取的所述至少一个字符串为所述用户自动生成昵称,包括:Optionally, in another embodiment of the method for generating a user name, the automatically generating a nickname for the user according to the selected at least one character string includes:
若选取的字符串为一个,则直接将选取的所述字符串作为所述用户的昵称;或者If the selected string is one, the selected string is directly used as the nickname of the user; or
若选取的字符串为两个以上,则将所述两个以上字符串相组合生成所述用户的昵称;或者If the selected character string is more than two, the two or more character strings are combined to generate the user's nickname; or
若选取的字符串为两个以上,则将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成所述用户的昵称。If the selected character string is more than two, the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected. The latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
本实施例中,比如用户选择按昵称生成用户名选择项后,从预先建立的字符串库中选取了两个字符串,为“加菲猫”和“海绵宝宝”,那么可以将所述两个字符串相组合生成的“加菲猫海绵宝宝”作为为用户自动生成的昵称;也可以将“加菲猫”拆分成“加菲”和“猫”,将“海绵宝宝”拆分成“海绵”和“宝宝”,再将“加菲”和“宝宝”进行组合生成的“加菲宝宝”作为为用户自动生成的昵称;也可以将“加菲猫”拆分成“加菲”和“猫”,再选取“加菲”与“海绵宝宝”组合生成的“加菲海绵宝宝”作为为用户自动生成的昵称。In this embodiment, for example, after the user selects the user name selection item by the nickname, two characters are selected from the pre-established string library, which are "Garfield" and "SpongeBabies", then the two characters can be selected. The "Garfield SpongeBob" generated by the string combination is used as the nickname automatically generated for the user; the "Garfield" can also be split into "Garfield" and "Cat", and the "SpongeBob" is split into "Sponge" and "Baby" "Add Garfield" and "Baby" to create a "Garfield Baby" as a nickname automatically generated for the user; you can also split "Garfield" into "Garfield" and "Cat", then select " "Garfield SpongeBob" generated by Garfield and SpongeBob is a nickname automatically generated for the user.
本实施例中,根据选取的字符串的数量,采用不同的拆分组合的方式为用户自动生成昵称,可以保证为用户生成的昵称的多样性。而拆分组合的方式有很多种,本申请对此不再详细赘述。In this embodiment, according to the number of selected character strings, the user is automatically generated with a nickname by using different split combinations, which can ensure the diversity of the nickname generated by the user. There are many ways to split the combination, which will not be described in detail in this application.
可选地,参看图3,在本申请生成用户名的方法的另一实施例中,在所述根据所述选择,从预先建立的字符串库中选取至少一个字符串(S40)之前,还包括:Optionally, referring to FIG. 3, in another embodiment of the method for generating a username in the present application, before the selecting at least one character string from the pre-established string library according to the selection (S40), include:
S42、从网站获取使用频度大于第一阈值的字、词和/或短语;S42. Obtain, from the website, a word, a word, and/or a phrase whose usage frequency is greater than a first threshold;
可以定期从网站收集使用频度大于第一阈值的字、词和/或短语,也可以直接采用经过收集和统计而获得的热点的字、词和/或短语。Words, words, and/or phrases that are used more frequently than the first threshold may be collected from the website on a regular basis, or words, words, and/or phrases of hotspots obtained through collection and statistics may be directly used.
S43、将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。 S43. Save the obtained list of words, words, and/or phrases into a string library.
本实施例中,通过从网站获取使用频度大于第一阈值的字、词和/或短语,并将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中,能够便于为用户生成比较新颖的昵称。In this embodiment, a word, a word, and/or a phrase whose usage frequency is greater than a first threshold is obtained from a website, and the obtained list of words, words, and/or phrases formed into a string is saved in a string library. It is convenient to generate a relatively new nickname for the user.
可选地,在本申请生成用户名的方法的另一实施例中,所述接收用户对所述选择项中一个选择项的选择,包括:Optionally, in another embodiment of the method for generating a user name, the receiving user selects one of the selection items, including:
接收用户对按姓名生成用户名选择项的选择。The user is selected to generate a username selection by name.
参看图4,其中,所述根据所述选择,为所述用户自动生成用户名(S4),包括:Referring to FIG. 4, the automatically generating a username (S4) for the user according to the selection includes:
S44、根据所述选择,从预先建立的姓名库中选取姓和名;S44. Select a first name and a first name from a pre-established name database according to the selection;
S45、将选取的所述姓和名相组合生成所述用户的姓名。S45. Combine the selected last name and name to generate the name of the user.
本实施例中,在用户选择按姓名生成用户名时,通过从预先建立的姓名库中选取姓和名,并将选取的所述姓和名相组合生成所述用户的姓名,能够便于为用户生成姓名。In this embodiment, when the user selects to generate a user name by name, by selecting a first name and a first name from a pre-established name database, and combining the selected last name and the name to generate the user's name, the user can be conveniently Generate a name.
可选地,在本申请生成用户名的方法的另一实施例中,所述根据所述选择,从预先建立的姓名库中选取姓和名,包括:Optionally, in another embodiment of the method for generating a username in the application, the selecting a first name and a first name from the pre-established name database according to the selection includes:
根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名;其中,所述第一库中保存有人名姓氏列表,所述第二库中保存有由字、词或短语构成的字符串。According to the selection, a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
可选地,在本申请生成用户名的方法的另一实施例中,所述从预先建立的第二库中选取名,包括:Optionally, in another embodiment of the method for generating a username in the application, the selecting a name from the pre-established second library includes:
从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者Selecting a string from the pre-established second library and using the selected string as a name; or
从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者Selecting at least two strings from the pre-established second library and combining the at least two strings to generate a name; or
从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。Select at least two strings from the pre-established second library, and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split The at least one substring after the division is combined with at least one of the selected strings to generate a name.
本实施例中,比如用户选择按姓名生成用户名选择项后,假设从预先建 立的第一库中选取姓“杜”,从预先建立的第二库中选取了两个字符串,为“加菲猫”和“海绵宝宝”。假设按前述实施例中生成昵称“加菲宝宝”的方式为用户生成名“加菲宝宝”,则将姓“杜”和名“加菲宝宝”进行组合生成的“杜加菲宝宝”即为为用户自动生成的姓名。In this embodiment, for example, after the user selects a user name selection item by name, it is assumed to be pre-built. In the first library, the name "Du" is selected, and two strings are selected from the pre-established second library, which are "Garfield" and "SpongeBabies". Assume that the name "Garfield Baby" is generated for the user in the manner of generating the nickname "Garfield Baby" in the foregoing embodiment, and the "Dujiafei Baby" generated by combining the surname "Du" and the name "Garfield Baby" is A name that is automatically generated for the user.
本实施例中,根据选取的字符串的数量,采用不同的拆分组合的方式为用户生成名,可以保证为用户生成的名的多样性,继而能够保证为用户自动生成的姓名的多样性。本实施例中,从预先建立的第二库中选取名的方式和前述实施例中为用户自动生成昵称的方式一样,且有很多种,本申请对此不再详细赘述。In this embodiment, according to the number of selected character strings, a different split combination is used to generate a name for the user, which can ensure the diversity of the names generated by the user, and then can ensure the diversity of the names automatically generated by the user. In this embodiment, the manner of selecting a name from the pre-established second library is the same as the method for automatically generating a nickname for the user in the foregoing embodiment, and there are many different types, which are not described in detail in this application.
可选地,参看图5,在本申请生成用户名的方法的另一实施例中,在所述根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名之前,还包括:Optionally, referring to FIG. 5, in another embodiment of the method for generating a username in the present application, in the selecting according to the selection, selecting a last name from a pre-established first library from the pre-established second library Before selecting a name, it also includes:
S46、将人名姓氏列表保存在第一库中,如将百家姓保存在第一库中;S46. Keep the list of names of people in the first library, such as storing the hundred names in the first library;
S47、从网站获取使用频度大于第二阈值的字、词和/或短语;S47. Obtain, from the website, words, words, and/or phrases whose usage frequency is greater than a second threshold;
S48、将获取到的所述字、词和/或短语形成字符串列表保存在第二库中。S48. Save the obtained list of words, words, and/or phrases into a second library.
本实施例中,通过从网站获取使用频度大于第二阈值的字、词和/或短语,并将获取到的所述字、词和/或短语形成字符串列表保存在第二库中,能够便于为用户生成比较新颖的姓名。In this embodiment, a word, a word, and/or a phrase whose usage frequency is greater than a second threshold is obtained from a website, and the obtained list of words, words, and/or phrases formed into a string is saved in the second library, It is convenient to generate relatively new names for users.
可选地,在本申请生成用户名的方法的另一实施例中,在根据所述选择,为所述用户自动生成用户名之前,还包括:预先设置所述用户名的字符串长度;Optionally, in another embodiment of the method for generating a user name, the method further includes: pre-setting a character string length of the user name before automatically generating a user name for the user according to the selecting;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:根据所述选择和所述预先设置的用户名的字符串长度,为所述用户自动生成符合预先设置的所述字符串长度的用户名。本实施例中,通过预先设置用户名的字符串长度,能够便于为用户自动生成符合预先设置的所述字符串长度的用户名。The automatically generating a user name for the user according to the selection includes: automatically generating, according to the selection and the string length of the preset user name, the character that meets the preset setting for the user. The username of the string length. In this embodiment, by setting the character string length of the user name in advance, it is convenient to automatically generate a user name that matches the length of the character string set in advance.
可选地,在本申请生成用户名的方法的另一实施例中,在所述根据所述选择,为所述用户自动生成用户名之前,还包括:预先设置所述用户名应包含的字符串;其中,所述根据所述选择,为所述用户自动生成用户名,包括: 根据所述选择和预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。本实施例中,通过预先设置用户名应包含的字符串,能够便于为用户自动生成包含预先设置的所述字符串的用户名。Optionally, in another embodiment of the method for generating a username in the application, before the automatically generating the username for the user according to the selecting, the method further includes: presetting the character that the username should include a string; wherein the automatically generating a username for the user according to the selection comprises: A user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance. In the present embodiment, by setting a character string to be included in the user name in advance, it is possible to easily generate a user name including the character string set in advance for the user.
可选地,在本申请生成用户名的方法的另一实施例中,所述选择项还包括按照预定风格生成用户名;其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在字符串库或第二库中,包括:将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库或第二库中;Optionally, in another embodiment of the method for generating a username in the application, the selecting further comprises: generating a username according to a predetermined style; wherein the words, words and/or phrases to be acquired are formed The list of strings is stored in the string library or the second library, including: classifying the obtained words, words, and/or phrases according to a predetermined style, and saving the formed list of different styles of strings in the string. Library or second library;
所述根据所述选择,为所述用户自动生成用户名,包括:若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。According to the selection, automatically generating a user name for the user, including: if the user selects to generate a user name by nickname or selects a user name by name, and selects to generate a user name according to a predetermined style, according to the selection, The user automatically generates a username that conforms to the predetermined style.
本实施例中,通过将获取到的字、词和/或短语按照预定的风格进行分类,将形成的不同风格的字符串列表保存在字符串库或第二库中,为用户提供按照预定风格生成用户名的选择项,并在用户选择按预定风格生成用户名时,按照用户选择的具体风格,从字符串库或第二库中选取对应风格的字符串为用户生成昵称或名,能够便于为用户自动生成用户所选风格的用户名,因而能够增强用户体验。In this embodiment, by sorting the acquired words, words, and/or phrases according to a predetermined style, the formed string list of different styles is saved in a string library or a second library, and the user is provided according to a predetermined style. Generate a user name selection, and when the user selects a predetermined style to generate a user name, according to the specific style selected by the user, select a character string corresponding to the style from the string library or the second library to generate a nickname or a name for the user, which is convenient The user experience is automatically generated by automatically generating a user-selected user name for the user.
可选地,参看图6,在本申请生成用户名的方法的另一实施例中,所述根据所述选择,为所述用户自动生成用户名(S4),包括:Optionally, referring to FIG. 6, in another embodiment of the method for generating a username in the application, the automatically generating a username (S4) for the user according to the selecting includes:
S49、根据所述选择,为所述用户自动生成至少两个用户名;S49. Automatically generate at least two user names for the user according to the selection.
S50、接收所述用户对所述至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。S50. Receive the user selection of the at least two user names, and use the user name selected by the user as the user name of the user.
本实施例中,通过为用户自动生成至少两个用户名,并按照用户的选择将用户选择的用户名作为用户的用户名,能够增强用户体验。In this embodiment, the user experience can be enhanced by automatically generating at least two user names for the user and using the user name selected by the user as the user name according to the user's selection.
可选地,参看图7,在本申请生成用户名的方法的另一实施例中,在所述根据所述选择,为所述用户自动生成用户名(S4)之后,还包括:Optionally, referring to FIG. 7, in another embodiment of the method for generating a username in the present application, after the user name (S4) is automatically generated for the user according to the selection, the method further includes:
S5、判断所述自动生成的用户名是否与现有的用户名相同;S5. Determine whether the automatically generated username is the same as an existing username.
S6、根据所述判断的结果,若所述自动生成的用户名与现有的用户名相同,则为所述用户重新自动生成新的用户名。 S6. According to the result of the determining, if the automatically generated username is the same as the existing username, the user is automatically regenerated to generate a new username.
本实施例中,通过在每次为用户自动生成用户名后,判断所述自动生成的用户名是否与现有的用户名相同,如判断所述自动生成的用户名是否与用户所要注册的论坛中现有的用户名相同,并在所述自动生成的用户名与现有的用户名相同时,舍掉所述自动生成的用户名,重新为所述用户自动生成用户名,能够保证生成的用户名的唯一性。In this embodiment, after the user name is automatically generated for the user, it is determined whether the automatically generated user name is the same as the existing user name, such as determining whether the automatically generated user name is related to the user to be registered. The existing user names are the same, and when the automatically generated user name is the same as the existing user name, the automatically generated user name is discarded, and the user name is automatically generated for the user, which can be guaranteed to be generated. The uniqueness of the username.
参看图8,本申请的实施例提供一种生成用户名的系统,包括:指令接收单元1,用于接收用户注册用户名的指令;选择项提供单元2,用于根据所述指令接收单元1接收到的注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;选择接收单元3,用于接收用户对所述选择项提供单元2提供的选择项中一个选择项的选择;用户名生成单元4,用于根据所述选择,为所述用户自动生成用户名。Referring to FIG. 8, an embodiment of the present application provides a system for generating a user name, including: an instruction receiving unit 1 for receiving an instruction for a user to register a user name, and an option providing unit 2 for receiving the unit 1 according to the instruction. Receiving an instruction for registering a user name, providing the user with a selection of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name; and selecting a receiving unit 3, configured to receive the user for the selection item The selection of one of the selection items provided by the unit 2 is provided; the user name generation unit 4 is configured to automatically generate a user name for the user according to the selection.
本申请实施例提供的生成用户名的系统,通过接收用户注册用户名的指令,并根据所述注册用户名的指令,向用户提供用户名生成方式的选择项,并在用户对所述选择项中的一个选择项进行选择之后,根据用户的选择为所述用户自动生成用户名,不仅解决了现有技术用户苦思冥想用户名比较麻烦和需要使用用户经常使用的应用软件的帐号作为用户名比较不方便的问题,而且较之现有技术,也增加了用户选择的多样性,增强了用户体验。The system for generating a user name provided by the embodiment of the present application receives an instruction for registering a user name by using a user, and provides a user with a selection method of a user name generation manner according to the instruction of the registered user name, and the user selects the user name. After selecting one of the options, the user name is automatically generated for the user according to the user's selection, which not only solves the problem that the prior art user is cumbersome to think about the user name, and needs to use the account of the application software frequently used by the user as the user name. Convenience problems, and compared to the prior art, also increase the diversity of user choices and enhance the user experience.
本申请生成用户名的系统的各个实施例中的方法和过程可以与本申请生成用户名的方法的各个实施例中对应的方法和过程一样,下面均不再详细赘述。The methods and processes in the various embodiments of the system for generating a user name in this application may be the same as the corresponding methods and processes in the various embodiments of the method for generating a user name in the present application, and are not described in detail below.
可选地,在本申请生成用户名的系统的另一实施例中,所述选择接收单元,用于接收用户对所述选择项提供单元提供的选择项中按昵称生成用户名选择项的选择;参看图9,其中,所述用户名生成单元4,包括:第一字符串选取子单元40,用于根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;昵称生成子单元41,用于根据所述第一字符串选取子单元40选取的所述至少一个字符串为所述用户自动生成昵称。本实施例中,在用户选择按昵称生成用户名时,可以从预先建立的字符串库中随机选取任一有限数量的字符串,也可以设置默认的选取规则,比如一次随机选取两个字符串。 Optionally, in another embodiment of the system for generating a user name, the selection receiving unit is configured to receive a selection of a user name selection item by a nickname in a selection item provided by the selection item providing unit by a user. Referring to FIG. 9 , the user name generating unit 4 includes: a first character string selecting sub-unit 40, configured to select at least one character string from a pre-established string library according to the selection; a string of words, words or phrases is stored in the string library; the nickname generating sub-unit 41 is configured to automatically select the at least one character string selected by the first string selecting sub-unit 40 as the user. Generate a nickname. In this embodiment, when the user selects to generate the user name by nickname, any limited number of character strings may be randomly selected from the pre-established string library, or a default selection rule may be set, for example, two strings are randomly selected at a time. .
可选地,在本申请生成用户名的系统的另一实施例中,所述昵称生成子单元,包括:第一昵称生成模块,用于若所述第一字符串选取子单元选取的字符串为一个时,直接将选取的所述字符串作为所述用户的昵称;或者Optionally, in another embodiment of the system for generating a user name, the nickname generating subunit includes: a first nickname generating module, configured to: if the first string selects a string selected by the subunit For one time, directly use the selected string as the nickname of the user; or
第二昵称生成模块,用于若所述第一字符串选取子单元选取的字符串为两个以上时,将所述两个以上字符串相组合生成所述用户的昵称;或者a second nickname generating module, configured to: if the character string selected by the first character string selection subunit is two or more, combine the two or more character strings to generate a nickname of the user; or
第三昵称生成模块,用于若所述第一字符串选取子单元选取的字符串为两个以上时,将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与所述第一字符串选取模块选取的所述字符串中至少一个进行组合生成所述用户的昵称。a third nickname generating module, configured to: when the first character string selection sub-unit selects two or more character strings, split the selected at least one character string into at least two sub-strings, and select at least two after splitting Combining two substrings to generate a nickname of the user, or selecting at least one of the split substrings and at least one of the string selected by the first string selection module to generate the nickname of the user .
本实施例中,根据选取的字符串的数量,采用不同的拆分组合的方式为用户自动生成昵称,可以保证为用户生成的昵称的多样性。而拆分组合的方式有很多种,本申请对此不再详细赘述。In this embodiment, according to the number of selected character strings, the user is automatically generated with a nickname by using different split combinations, which can ensure the diversity of the nickname generated by the user. There are many ways to split the combination, which will not be described in detail in this application.
可选地,参看图10,在本申请生成用户名的系统的另一实施例中,还包括:Optionally, referring to FIG. 10, in another embodiment of the system for generating a username in the application, the method further includes:
第一获取子单元42,用于在所述第一字符串选取子单元40根据所述选择,从预先建立的字符串库中选取至少一个字符串之前,从网站获取使用频度大于第一阈值的字、词和/或短语;可以定期从网站收集使用频度大于第一阈值的字、词和/或短语,也可以直接采用经过收集和统计而获得的热点的字、词和/或短语;The first obtaining sub-unit 42 is configured to: before the first character string selecting sub-unit 40 selects at least one character string from the pre-established string library according to the selection, acquiring the usage frequency from the website is greater than the first threshold Words, words and/or phrases; words, words and/or phrases that are frequently used more frequently than the first threshold may be collected from the website on a regular basis, or words, words and/or phrases of hotspots obtained through collection and statistics may be directly used. ;
第一保存子单元43,用于将所述第一获取子单元42获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。The first saving sub-unit 43 is configured to save the list of words, words and/or phrases formed by the first obtaining sub-unit 42 in a string library.
本实施例中,通过从网站获取使用频度大于第一阈值的字、词和/或短语,并将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中,能够便于为用户生成比较新颖的昵称。In this embodiment, a word, a word, and/or a phrase whose usage frequency is greater than a first threshold is obtained from a website, and the obtained list of words, words, and/or phrases formed into a string is saved in a string library. It is convenient to generate a relatively new nickname for the user.
可选地,在本申请生成用户名的系统的另一实施例中,所述选择接收单元,用于接收用户对所述选择项提供单元提供的选择项中按姓名生成用户名选择项的选择;参看图11,其中,所述用户名生成单元4,包括:姓和名选取子单元44,用于根据所述选择,从预先建立的姓名库中选取姓和名;姓名 生成子单元45,用于将所述姓和名选取子单元44选取的所述姓和名相组合生成所述用户的姓名。本实施例中,在用户选择按姓名生成用户名时,通过从预先建立的姓名库中选取姓和名,并将选取的所述姓和名相组合生成所述用户的姓名,能够便于为用户生成姓名。Optionally, in another embodiment of the system for generating a user name, the selection receiving unit is configured to receive a selection of a user name selection item by name generated by a user for the selection item providing unit. Referring to FIG. 11, the user name generating unit 4 includes: a first name and a name selecting sub-unit 44, for selecting a first name and a first name from a pre-established name list according to the selection; The generating subunit 45 is configured to combine the last name and the name selected by the last name and the name selecting subunit 44 to generate the name of the user. In this embodiment, when the user selects to generate a user name by name, by selecting a first name and a first name from a pre-established name database, and combining the selected last name and the name to generate the user's name, the user can be conveniently Generate a name.
可选地,参看图12,在本申请生成用户名的系统的另一实施例中,所述姓和名选取子单元44,包括:姓选取模块440,用于根据所述选择,从预先建立的第一库中选取姓;其中,所述第一库中保存有人名姓氏列表;名选取模块441,用于从预先建立的第二库中选取名;其中,所述第二库中保存有由字、词或短语构成的字符串。Optionally, referring to FIG. 12, in another embodiment of the system for generating a username in the present application, the first name and first name selection sub-unit 44 includes a surname selection module 440 for pre-establishing from the selection according to the selection. a first name is selected in the first library; wherein the first library holds a list of names of people; a name selection module 441 is configured to select a name from a second library that is pre-established; wherein the second library holds A string of words, words, or phrases.
可选地,在本申请生成用户名的系统的另一实施例中,所述名选取模块,包括:Optionally, in another embodiment of the system for generating a username in the application, the name selection module includes:
第一名选取子模块,用于从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者The first one selects a submodule for selecting a string from the pre-established second library and using the selected string as a name; or
第二名选取子模块,用于从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者a second selection submodule, configured to select at least two strings from the pre-established second library, and combine the at least two strings to generate a name; or
第三名选取子模块,用于从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。The third selected sub-module is configured to select at least two strings from the pre-established second library, and split the selected at least one string into at least two sub-strings, and select at least two sub-characters after the split. The string is combined to generate a name, or at least one of the split substrings is selected to be combined with at least one of the selected strings to generate a name.
本实施例中,根据选取的字符串的数量,采用不同的拆分组合的方式为用户生成名,可以保证为用户生成的名的多样性,继而能够保证为用户自动生成的姓名的多样性。本实施例中,从预先建立的第二库中选取名的方式和前述实施例中为用户自动生成昵称的方式一样,且有很多种,本申请对此不再详细赘述。In this embodiment, according to the number of selected character strings, a different split combination is used to generate a name for the user, which can ensure the diversity of the names generated by the user, and then can ensure the diversity of the names automatically generated by the user. In this embodiment, the manner of selecting a name from the pre-established second library is the same as the method for automatically generating a nickname for the user in the foregoing embodiment, and there are many different types, which are not described in detail in this application.
可选地,参看图13,在本申请生成用户名的系统的另一实施例中,还包括:第二保存子单元46,用于将人名姓氏列表保存在第一库中,如将百家姓保存在第一库中;第二获取子单元47,用于从网站获取使用频度大于第二阈值的字、词和/或短语;第三保存子单元48,用于将所述第二获取子单元47获取到的所述字、词和/或短语形成字符串列表保存在第二库中。本实施例中, 通过从网站获取使用频度大于第二阈值的字、词和/或短语,并将获取到的所述字、词和/或短语形成字符串列表保存在第二库中,能够便于为用户生成比较新颖的姓名。Optionally, referring to FIG. 13, in another embodiment of the system for generating a username in the application, the method further includes: a second saving subunit 46, configured to save the list of names of people in the first library, such as The last name is stored in the first library; the second obtaining subunit 47 is configured to obtain, from the website, words, words and/or phrases whose usage frequency is greater than a second threshold; and a third saving subunit 48 for using the second The list of words, words, and/or phrases formed by the obtaining sub-unit 47 is stored in the second library. In this embodiment, By storing words, words and/or phrases whose usage frequency is greater than the second threshold from the website, and storing the obtained list of words, words and/or phrases into a second library, it can be conveniently generated for the user. A relatively new name.
可选地,在本申请生成用户名的系统的另一实施例中,还包括:第一设置单元,用于在所述用户名生成单元根据所述选择,为所述用户自动生成用户名之前,预先设置所述用户名的字符串长度;其中,所述用户名生成单元,用于根据所述选择和所述第一设置单元预先设置的用户名的字符串长度,为所述用户自动生成符合所述预先设置的字符串长度的用户名。Optionally, in another embodiment of the system for generating a user name, the method further includes: a first setting unit, configured to: before the user name generating unit automatically generates a user name for the user according to the selecting The user name generating unit is configured to automatically generate a string length for the user according to the selection and a character string length of the user name preset by the first setting unit. A username that matches the length of the pre-set string.
本实施例中,通过预先设置用户名的字符串长度,能够便于为用户自动生成符合预先设置的所述字符串长度的用户名。In this embodiment, by setting the character string length of the user name in advance, it is convenient to automatically generate a user name that matches the length of the character string set in advance.
可选地,在本申请生成用户名的系统的另一实施例中,还包括:第二设置单元,用于在所述用户名生成单元根据所述选择,为所述用户自动生成用户名之前,预先设置所述用户名应包含的字符串;其中,所述用户名生成单元,用于根据所述选择和所述第二设置单元预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。本实施例中,通过预先设置用户名应包含的字符串,能够便于为用户自动生成包含预先设置的所述字符串的用户名。Optionally, in another embodiment of the system for generating a username in the application, the method further includes: a second setting unit, configured to: before the username generation unit automatically generates a username for the user according to the selection Presetting the character string that the user name should include; wherein the user name generating unit is configured to automatically generate the inclusion for the user according to the selection and the character string preset by the second setting unit. The user name of the string set in advance. In the present embodiment, by setting a character string to be included in the user name in advance, it is possible to easily generate a user name including the character string set in advance for the user.
可选地,在本申请生成用户名的系统的另一实施例中,所述选择项还包括按照预定风格生成用户名;其中,所述第一保存子单元,用于将所述第一获取子单元获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库中;或者,所述第三保存子单元,用于将所述第二获取子单元获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在第二库中;所述用户名生成单元,用于若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名时,根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。Optionally, in another embodiment of the system for generating a username in the application, the selecting further includes: generating a username according to a predetermined style; wherein the first saving subunit is configured to use the first obtaining The words, words and/or phrases acquired by the subunit are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library; or the third saving subunit is used for Sorting the words, words, and/or phrases acquired by the second obtaining subunit according to a predetermined style, and saving the formed list of different styles of strings in the second library; the user name generating unit For generating a user name by nickname or selecting a user name by name, and selecting to generate a user name according to a predetermined style, according to the selection, automatically generating a user name conforming to the predetermined style for the user.
本实施例中,通过将获取到的字、词和/或短语按照预定的风格进行分类,将形成的不同风格的字符串列表保存在字符串库或第二库中,为用户提供按照预定风格生成用户名的选择项,并在用户选择按预定风格生成用户名时, 按照用户选择的具体风格,从字符串库或第二库中选取对应风格的字符串为用户生成昵称或名,能够便于为用户自动生成用户所选风格的用户名,因而能够增强用户体验。In this embodiment, by sorting the acquired words, words, and/or phrases according to a predetermined style, the formed string list of different styles is saved in a string library or a second library, and the user is provided according to a predetermined style. Generate a selection of usernames and when the user chooses to generate a username in a predetermined style, According to the specific style selected by the user, the string corresponding to the style is selected from the string library or the second library to generate a nickname or a name for the user, which can automatically generate a user name of the user-selected style for the user, thereby enhancing the user experience.
可选地,参看图14,在本申请生成用户名的系统的另一实施例中,所述用户名生成单元4,包括:用户名生成子单元49,用于根据所述选择,为所述用户自动生成至少两个用户名;用户名选择子单元50,用于接收所述用户对所述用户名生成子单元49自动生成的至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。本实施例中,通过为用户自动生成至少两个用户名,并按照用户的选择将用户选择的用户名作为用户的用户名,能够增强用户体验。Optionally, referring to FIG. 14, in another embodiment of the system for generating a username in the application, the user name generating unit 4 includes: a username generating subunit 49, configured to The user automatically generates at least two user names; the user name selection sub-unit 50 is configured to receive the user's selection of at least two user names automatically generated by the user name generation sub-unit 49, and use the user name selected by the user as the The user's username. In this embodiment, the user experience can be enhanced by automatically generating at least two user names for the user and using the user name selected by the user as the user name according to the user's selection.
可选地,参看图15,在本申请生成用户名的系统的另一实施例中,还包括:判断单元5,用于在所述用户名生成单元4根据所述选择,为所述用户自动生成用户名之后,判断所述自动生成的用户名是否与现有的用户名相同;通知单元6,用于根据所述判断单元5判断的结果,若所述自动生成的用户名与现有的用户名相同,则通知所述用户名生成单元4为所述用户重新自动生成新的用户名。Optionally, referring to FIG. 15, in another embodiment of the system for generating a username in the application, the method further includes: a determining unit 5, configured to automatically, for the user, the user name generating unit 4 according to the selecting After the user name is generated, it is determined whether the automatically generated user name is the same as the existing user name; the notification unit 6 is configured to, according to the result of the determining by the determining unit 5, the automatically generated user name and the existing If the user name is the same, the user name generating unit 4 is notified to automatically generate a new user name for the user.
本实施例中,通过在每次为用户自动生成用户名后,判断所述自动生成的用户名是否与现有的用户名相同,并在所述自动生成的用户名与现有的用户名相同时,舍掉所述自动生成的用户名,重新为所述用户自动生成用户名,能够保证生成的用户名的唯一性。In this embodiment, after automatically generating a username for the user, it is determined whether the automatically generated username is the same as the existing username, and the automatically generated username is associated with the existing username. At the same time, the automatically generated username is discarded, and the user name is automatically generated for the user, so that the uniqueness of the generated username can be guaranteed.
本申请实施例还提供了一种电子设备,包括:处理器、存储器、通信接口和总线;The embodiment of the present application further provides an electronic device, including: a processor, a memory, a communication interface, and a bus;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;The processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
所述存储器存储可执行程序代码;The memory stores executable program code;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行本申请实施例所提供的生成用户名的方法,其中,本申请实施例所提供的生成用户名的方法可以包括: The processor, by reading the executable program code stored in the memory, to run a program corresponding to the executable program code, for performing the method for generating a user name provided by the embodiment of the present application, wherein The method for generating a username provided by the application embodiment may include:
接收用户注册用户名的指令;An instruction to receive a user registered username;
根据所述注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;Determining, according to the instruction of registering the user name, a selection item of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name;
接收用户对所述选择项中一个选择项的选择;Receiving a user selection of one of the selections;
根据所述选择,为所述用户自动生成用户名。Based on the selection, a username is automatically generated for the user.
在一种实现方式中,所述接收用户对所述选择项中一个选择项的选择,包括:In an implementation manner, the receiving user selects one of the selection items, including:
接收用户对按昵称生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by nickname;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;Selecting at least one character string from the pre-established string library according to the selection; wherein the string library stores a character string composed of words, words or phrases;
根据选取的所述至少一个字符串为所述用户自动生成昵称。A nickname is automatically generated for the user according to the selected at least one character string.
具体的,所述根据选取的所述至少一个字符串为所述用户自动生成昵称,包括:Specifically, the automatically generating the nickname for the user according to the selected at least one character string includes:
若选取的字符串为一个,则直接将选取的所述字符串作为所述用户的昵称;或者If the selected string is one, the selected string is directly used as the nickname of the user; or
若选取的字符串为两个以上,则将所述两个以上字符串相组合生成所述用户的昵称;或者If the selected character string is more than two, the two or more character strings are combined to generate the user's nickname; or
若选取的字符串为两个以上,则将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成所述用户的昵称。If the selected character string is more than two, the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected. The latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
更进一步的,在所述根据所述选择,从预先建立的字符串库中选取至少一个字符串之前,还包括:Further, before the selecting at least one character string from the pre-established string library according to the selection, the method further includes:
从网站获取使用频度大于第一阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than the first threshold;
将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。The obtained list of words, words and/or phrases formed into a string is saved in a string library.
在另一种实现方式中,所述接收用户对所述选择项中一个选择项的选择,包括:In another implementation manner, the receiving user selects one of the selection items, including:
接收用户对按姓名生成用户名选择项的选择; Receiving a selection of a user to generate a username selection by name;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择,从预先建立的姓名库中选取姓和名;Selecting a first name and a first name from a pre-established name base according to the selection;
将选取的所述姓和名相组合生成所述用户的姓名。The selected last name and name are combined to generate the user's name.
具体的,所述根据所述选择,从预先建立的姓名库中选取姓和名,包括:Specifically, according to the selecting, selecting a first name and a first name from a pre-established name database, including:
根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名;其中,所述第一库中保存有人名姓氏列表,所述第二库中保存有由字、词或短语构成的字符串。According to the selection, a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
具体的,所述从预先建立的第二库中选取名,包括:Specifically, the selecting a name from the pre-established second library includes:
从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者Selecting a string from the pre-established second library and using the selected string as a name; or
从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者Selecting at least two strings from the pre-established second library and combining the at least two strings to generate a name; or
从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。Select at least two strings from the pre-established second library, and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split The at least one substring after the division is combined with at least one of the selected strings to generate a name.
具体的,在所述根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名之前,包括:Specifically, before the selecting a name from the pre-established first library according to the selection, and selecting a name from the pre-established second library, the method includes:
将人名姓氏列表保存在第一库中;Save the list of names of people in the first library;
从网站获取使用频度大于第二阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than a second threshold;
将获取到的所述字、词和/或短语形成字符串列表保存在第二库中。The obtained list of words, words and/or phrases formed into a string is saved in the second library.
更进一步的,在根据所述选择,为所述用户自动生成用户名之前,还包括:Further, before automatically generating the username for the user according to the selection, the method further includes:
预先设置所述用户名的字符串长度;Presetting the string length of the username;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择和所述预先设置的用户名的字符串长度,为所述用户自动生成符合预先设置的所述字符串长度的用户名。And according to the selection and the character string length of the preset user name, a user name that matches the length of the character string set in advance is automatically generated for the user.
更进一步的,在所述根据所述选择,为所述用户自动生成用户名之前,还包括: Further, before the automatically generating the user name for the user according to the selection, the method further includes:
预先设置所述用户名应包含的字符串;Presetting the string that the username should contain;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择和预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。A user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
更进一步的,所述选择项还包括按照预定风格生成用户名;Further, the selecting further includes generating a username according to a predetermined style;
其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在字符串库,包括:Wherein, the stored word, word and/or phrase forming a string list is stored in a string library, including:
将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
更进一步的,所述选择项还包括按照预定风格生成用户名;Further, the selecting further includes generating a username according to a predetermined style;
其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在第二库中,包括:The storing the string, the word, and/or the phrase forming a string list in the second library, includes:
将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在第二库中;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
在另一种实现方式中,所述根据所述选择,为所述用户自动生成用户名,包括:In another implementation manner, the automatically generating a username for the user according to the selecting includes:
根据所述选择,为所述用户自动生成至少两个用户名;Automatically generating at least two user names for the user according to the selection;
接收所述用户对所述至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。Receiving, by the user, the selection of the at least two user names, and using the user name selected by the user as the user name of the user.
更进一步的,在所述根据所述选择,为所述用户自动生成用户名之后,还包括: Further, after the automatically generating the user name for the user according to the selection, the method further includes:
判断所述自动生成的用户名是否与现有的用户名相同;Determining whether the automatically generated username is the same as an existing username;
根据所述判断的结果,若所述自动生成的用户名与现有的用户名相同,则为所述用户重新自动生成新的用户名。According to the result of the determination, if the automatically generated username is the same as the existing username, the user is automatically regenerated to generate a new username.
本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于执行本申请实施例所提供的生成用户名的方法,其中,本申请实施例所提供的生成用户名的方法包括:The embodiment of the present application further provides a storage medium for storing an application, where the application is used to execute the method for generating a user name provided by the embodiment of the present application, where the generated user name provided by the embodiment of the present application is generated. The methods include:
接收用户注册用户名的指令;An instruction to receive a user registered username;
根据所述注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;Determining, according to the instruction of registering the user name, a selection item of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name;
接收用户对所述选择项中一个选择项的选择;Receiving a user selection of one of the selections;
根据所述选择,为所述用户自动生成用户名。Based on the selection, a username is automatically generated for the user.
在一种实现方式中,所述接收用户对所述选择项中一个选择项的选择,包括:In an implementation manner, the receiving user selects one of the selection items, including:
接收用户对按昵称生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by nickname;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;Selecting at least one character string from the pre-established string library according to the selection; wherein the string library stores a character string composed of words, words or phrases;
根据选取的所述至少一个字符串为所述用户自动生成昵称。A nickname is automatically generated for the user according to the selected at least one character string.
具体的,所述根据选取的所述至少一个字符串为所述用户自动生成昵称,包括:Specifically, the automatically generating the nickname for the user according to the selected at least one character string includes:
若选取的字符串为一个,则直接将选取的所述字符串作为所述用户的昵称;或者If the selected string is one, the selected string is directly used as the nickname of the user; or
若选取的字符串为两个以上,则将所述两个以上字符串相组合生成所述用户的昵称;或者If the selected character string is more than two, the two or more character strings are combined to generate the user's nickname; or
若选取的字符串为两个以上,则将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成所述用户的昵称。 If the selected character string is more than two, the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected. The latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
更进一步的,在所述根据所述选择,从预先建立的字符串库中选取至少一个字符串之前,还包括:Further, before the selecting at least one character string from the pre-established string library according to the selection, the method further includes:
从网站获取使用频度大于第一阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than the first threshold;
将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。The obtained list of words, words and/or phrases formed into a string is saved in a string library.
在另一种实现方式中,所述接收用户对所述选择项中一个选择项的选择,包括:In another implementation manner, the receiving user selects one of the selection items, including:
接收用户对按姓名生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by name;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择,从预先建立的姓名库中选取姓和名;Selecting a first name and a first name from a pre-established name base according to the selection;
将选取的所述姓和名相组合生成所述用户的姓名。The selected last name and name are combined to generate the user's name.
具体的,所述根据所述选择,从预先建立的姓名库中选取姓和名,包括:Specifically, according to the selecting, selecting a first name and a first name from a pre-established name database, including:
根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名;其中,所述第一库中保存有人名姓氏列表,所述第二库中保存有由字、词或短语构成的字符串。According to the selection, a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
具体的,所述从预先建立的第二库中选取名,包括:Specifically, the selecting a name from the pre-established second library includes:
从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者Selecting a string from the pre-established second library and using the selected string as a name; or
从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者Selecting at least two strings from the pre-established second library and combining the at least two strings to generate a name; or
从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。Select at least two strings from the pre-established second library, and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split The at least one substring after the division is combined with at least one of the selected strings to generate a name.
具体的,在所述根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名之前,包括:Specifically, before the selecting a name from the pre-established first library according to the selection, and selecting a name from the pre-established second library, the method includes:
将人名姓氏列表保存在第一库中;Save the list of names of people in the first library;
从网站获取使用频度大于第二阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than a second threshold;
将获取到的所述字、词和/或短语形成字符串列表保存在第二库中。The obtained list of words, words and/or phrases formed into a string is saved in the second library.
更进一步的,在根据所述选择,为所述用户自动生成用户名之前,还包 括:Further, before the user name is automatically generated for the user according to the selection, include:
预先设置所述用户名的字符串长度;Presetting the string length of the username;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择和所述预先设置的用户名的字符串长度,为所述用户自动生成符合预先设置的所述字符串长度的用户名。And according to the selection and the character string length of the preset user name, a user name that matches the length of the character string set in advance is automatically generated for the user.
更进一步的,在所述根据所述选择,为所述用户自动生成用户名之前,还包括:Further, before the automatically generating the user name for the user according to the selection, the method further includes:
预先设置所述用户名应包含的字符串;Presetting the string that the username should contain;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择和预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。A user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
更进一步的,所述选择项还包括按照预定风格生成用户名;Further, the selecting further includes generating a username according to a predetermined style;
其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在字符串库,包括:Wherein, the stored word, word and/or phrase forming a string list is stored in a string library, including:
将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
更进一步的,所述选择项还包括按照预定风格生成用户名;Further, the selecting further includes generating a username according to a predetermined style;
其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在第二库中,包括:The storing the string, the word, and/or the phrase forming a string list in the second library, includes:
将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在第二库中;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。 If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
在另一种实现方式中,所述根据所述选择,为所述用户自动生成用户名,包括:In another implementation manner, the automatically generating a username for the user according to the selecting includes:
根据所述选择,为所述用户自动生成至少两个用户名;Automatically generating at least two user names for the user according to the selection;
接收所述用户对所述至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。Receiving, by the user, the selection of the at least two user names, and using the user name selected by the user as the user name of the user.
更进一步的,在所述根据所述选择,为所述用户自动生成用户名之后,还包括:Further, after the automatically generating the user name for the user according to the selection, the method further includes:
判断所述自动生成的用户名是否与现有的用户名相同;Determining whether the automatically generated username is the same as an existing username;
根据所述判断的结果,若所述自动生成的用户名与现有的用户名相同,则为所述用户重新自动生成新的用户名。According to the result of the determination, if the automatically generated username is the same as the existing username, the user is automatically regenerated to generate a new username.
本申请实施例还提供了一种应用程序,用于执行本申请实施例所提供的生成用户名的方法,其中,本申请实施例所提供的生成用户名的方法包括:The embodiment of the present application further provides an application program for performing the method for generating a user name provided by the embodiment of the present application, where the method for generating a user name provided by the embodiment of the present application includes:
接收用户注册用户名的指令;An instruction to receive a user registered username;
根据所述注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;Determining, according to the instruction of registering the user name, a selection item of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name;
接收用户对所述选择项中一个选择项的选择;Receiving a user selection of one of the selections;
根据所述选择,为所述用户自动生成用户名。Based on the selection, a username is automatically generated for the user.
在一种实现方式中,所述接收用户对所述选择项中一个选择项的选择,包括:In an implementation manner, the receiving user selects one of the selection items, including:
接收用户对按昵称生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by nickname;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;Selecting at least one character string from the pre-established string library according to the selection; wherein the string library stores a character string composed of words, words or phrases;
根据选取的所述至少一个字符串为所述用户自动生成昵称。A nickname is automatically generated for the user according to the selected at least one character string.
具体的,所述根据选取的所述至少一个字符串为所述用户自动生成昵称,包括:Specifically, the automatically generating the nickname for the user according to the selected at least one character string includes:
若选取的字符串为一个,则直接将选取的所述字符串作为所述用户的昵称;或者 If the selected string is one, the selected string is directly used as the nickname of the user; or
若选取的字符串为两个以上,则将所述两个以上字符串相组合生成所述用户的昵称;或者If the selected character string is more than two, the two or more character strings are combined to generate the user's nickname; or
若选取的字符串为两个以上,则将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成所述用户的昵称。If the selected character string is more than two, the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected. The latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
更进一步的,在所述根据所述选择,从预先建立的字符串库中选取至少一个字符串之前,还包括:Further, before the selecting at least one character string from the pre-established string library according to the selection, the method further includes:
从网站获取使用频度大于第一阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than the first threshold;
将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。The obtained list of words, words and/or phrases formed into a string is saved in a string library.
在另一种实现方式中,所述接收用户对所述选择项中一个选择项的选择,包括:In another implementation manner, the receiving user selects one of the selection items, including:
接收用户对按姓名生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by name;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择,从预先建立的姓名库中选取姓和名;Selecting a first name and a first name from a pre-established name base according to the selection;
将选取的所述姓和名相组合生成所述用户的姓名。The selected last name and name are combined to generate the user's name.
具体的,所述根据所述选择,从预先建立的姓名库中选取姓和名,包括:Specifically, according to the selecting, selecting a first name and a first name from a pre-established name database, including:
根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名;其中,所述第一库中保存有人名姓氏列表,所述第二库中保存有由字、词或短语构成的字符串。According to the selection, a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
具体的,所述从预先建立的第二库中选取名,包括:Specifically, the selecting a name from the pre-established second library includes:
从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者Selecting a string from the pre-established second library and using the selected string as a name; or
从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者Selecting at least two strings from the pre-established second library and combining the at least two strings to generate a name; or
从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。 Select at least two strings from the pre-established second library, and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split The at least one substring after the division is combined with at least one of the selected strings to generate a name.
具体的,在所述根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名之前,包括:Specifically, before the selecting a name from the pre-established first library according to the selection, and selecting a name from the pre-established second library, the method includes:
将人名姓氏列表保存在第一库中;Save the list of names of people in the first library;
从网站获取使用频度大于第二阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than a second threshold;
将获取到的所述字、词和/或短语形成字符串列表保存在第二库中。The obtained list of words, words and/or phrases formed into a string is saved in the second library.
更进一步的,在根据所述选择,为所述用户自动生成用户名之前,还包括:Further, before automatically generating the username for the user according to the selection, the method further includes:
预先设置所述用户名的字符串长度;Presetting the string length of the username;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择和所述预先设置的用户名的字符串长度,为所述用户自动生成符合预先设置的所述字符串长度的用户名。And according to the selection and the character string length of the preset user name, a user name that matches the length of the character string set in advance is automatically generated for the user.
更进一步的,在所述根据所述选择,为所述用户自动生成用户名之前,还包括:Further, before the automatically generating the user name for the user according to the selection, the method further includes:
预先设置所述用户名应包含的字符串;Presetting the string that the username should contain;
其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
根据所述选择和预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。A user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
更进一步的,所述选择项还包括按照预定风格生成用户名;Further, the selecting further includes generating a username according to a predetermined style;
其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在字符串库,包括:Wherein, the stored word, word and/or phrase forming a string list is stored in a string library, including:
将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
更进一步的,所述选择项还包括按照预定风格生成用户名;Further, the selecting further includes generating a username according to a predetermined style;
其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在第二库中,包括: The storing the string, the word, and/or the phrase forming a string list in the second library, includes:
将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在第二库中;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
在另一种实现方式中,所述根据所述选择,为所述用户自动生成用户名,包括:In another implementation manner, the automatically generating a username for the user according to the selecting includes:
根据所述选择,为所述用户自动生成至少两个用户名;Automatically generating at least two user names for the user according to the selection;
接收所述用户对所述至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。Receiving, by the user, the selection of the at least two user names, and using the user name selected by the user as the user name of the user.
更进一步的,在所述根据所述选择,为所述用户自动生成用户名之后,还包括:Further, after the automatically generating the user name for the user according to the selection, the method further includes:
判断所述自动生成的用户名是否与现有的用户名相同;Determining whether the automatically generated username is the same as an existing username;
根据所述判断的结果,若所述自动生成的用户名与现有的用户名相同,则为所述用户重新自动生成新的用户名。According to the result of the determination, if the automatically generated username is the same as the existing username, the user is automatically regenerated to generate a new username.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (27)

  1. 一种生成用户名的方法,其特征在于,包括:A method for generating a username, comprising:
    接收用户注册用户名的指令;An instruction to receive a user registered username;
    根据所述注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;Determining, according to the instruction of registering the user name, a selection item of a user name generation manner; the selection item includes generating a user name by nickname and generating a user name by name;
    接收用户对所述选择项中一个选择项的选择;Receiving a user selection of one of the selections;
    根据所述选择,为所述用户自动生成用户名。Based on the selection, a username is automatically generated for the user.
  2. 根据权利要求1所述的生成用户名的方法,其特征在于,所述接收用户对所述选择项中一个选择项的选择,包括:The method for generating a user name according to claim 1, wherein the receiving user selects one of the selection items, including:
    接收用户对按昵称生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by nickname;
    其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
    根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;Selecting at least one character string from the pre-established string library according to the selection; wherein the string library stores a character string composed of words, words or phrases;
    根据选取的所述至少一个字符串为所述用户自动生成昵称。A nickname is automatically generated for the user according to the selected at least one character string.
  3. 根据权利要求2所述的生成用户名的方法,其特征在于,所述根据选取的所述至少一个字符串为所述用户自动生成昵称,包括:The method for generating a user name according to claim 2, wherein the automatically generating a nickname for the user according to the selected at least one character string comprises:
    若选取的字符串为一个,则直接将选取的所述字符串作为所述用户的昵称;或者If the selected string is one, the selected string is directly used as the nickname of the user; or
    若选取的字符串为两个以上,则将所述两个以上字符串相组合生成所述用户的昵称;或者If the selected character string is more than two, the two or more character strings are combined to generate the user's nickname; or
    若选取的字符串为两个以上,则将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成所述用户的昵称。If the selected character string is more than two, the selected at least one character string is split into at least two sub-strings, and the split at least two sub-strings are selected to be combined to generate the user's nickname, or the split is selected. The latter at least one substring is combined with at least one of the selected strings to generate a nickname of the user.
  4. 根据权利要求2或3所述的生成用户名的方法,其特征在于,在所述根据所述选择,从预先建立的字符串库中选取至少一个字符串之前,还包括:The method for generating a user name according to claim 2 or 3, further comprising: before the selecting at least one character string from the pre-established string library according to the selection, further comprising:
    从网站获取使用频度大于第一阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than the first threshold;
    将获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。The obtained list of words, words and/or phrases formed into a string is saved in a string library.
  5. 根据权利要求1所述的生成用户名的方法,其特征在于,所述接收用 户对所述选择项中一个选择项的选择,包括:A method of generating a user name according to claim 1, wherein said receiving The user's selection of one of the options, including:
    接收用户对按姓名生成用户名选择项的选择;Receiving a selection of a user to generate a username selection by name;
    其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
    根据所述选择,从预先建立的姓名库中选取姓和名;Selecting a first name and a first name from a pre-established name base according to the selection;
    将选取的所述姓和名相组合生成所述用户的姓名。The selected last name and name are combined to generate the user's name.
  6. 根据权利要求5所述的生成用户名的方法,其特征在于,所述根据所述选择,从预先建立的姓名库中选取姓和名,包括:The method for generating a user name according to claim 5, wherein said selecting a first name and a first name from a pre-established name list according to said selecting comprises:
    根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名;其中,所述第一库中保存有人名姓氏列表,所述第二库中保存有由字、词或短语构成的字符串。According to the selection, a first name is selected from a pre-established first library, and a name is selected from a pre-established second library; wherein the first library stores a list of names of people, and the second library stores A string of words, words, or phrases.
  7. 根据权利要求6所述的生成用户名的方法,其特征在于,所述从预先建立的第二库中选取名,包括:The method for generating a user name according to claim 6, wherein the selecting a name from the pre-established second library comprises:
    从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者Selecting a string from the pre-established second library and using the selected string as a name; or
    从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者Selecting at least two strings from the pre-established second library and combining the at least two strings to generate a name; or
    从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。Select at least two strings from the pre-established second library, and split the selected at least one string into at least two substrings, select at least two substrings after the split to combine to generate a name, or select a split The at least one substring after the division is combined with at least one of the selected strings to generate a name.
  8. 根据权利要求6或7所述的生成用户名的方法,其特征在于,在所述根据所述选择,从预先建立的第一库中选取姓,从预先建立的第二库中选取名之前,包括:The method for generating a user name according to claim 6 or 7, wherein, before the selecting according to the selection, selecting a last name from a pre-established first library, and selecting a name from a pre-established second library, include:
    将人名姓氏列表保存在第一库中;Save the list of names of people in the first library;
    从网站获取使用频度大于第二阈值的字、词和/或短语;Obtaining words, words, and/or phrases from the website that are used more frequently than a second threshold;
    将获取到的所述字、词和/或短语形成字符串列表保存在第二库中。The obtained list of words, words and/or phrases formed into a string is saved in the second library.
  9. 根据权利要求1-8任意一项所述的生成用户名的方法,其特征在于,在根据所述选择,为所述用户自动生成用户名之前,还包括:The method for generating a user name according to any one of claims 1 to 8, wherein before the user name is automatically generated for the user according to the selection, the method further includes:
    预先设置所述用户名的字符串长度; Presetting the string length of the username;
    其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
    根据所述选择和所述预先设置的用户名的字符串长度,为所述用户自动生成符合预先设置的所述字符串长度的用户名。And according to the selection and the character string length of the preset user name, a user name that matches the length of the character string set in advance is automatically generated for the user.
  10. 根据权利要求1-8任意一项所述的生成用户名的方法,其特征在于,在所述根据所述选择,为所述用户自动生成用户名之前,还包括:The method for generating a user name according to any one of claims 1 to 8, wherein before the automatically generating the user name for the user according to the selection, the method further includes:
    预先设置所述用户名应包含的字符串;Presetting the string that the username should contain;
    其中,所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
    根据所述选择和预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。A user name including the character string set in advance is automatically generated for the user according to the selection and the character string set in advance.
  11. 根据权利要求4所述的生成用户名的方法,其特征在于,所述选择项还包括按照预定风格生成用户名;The method for generating a user name according to claim 4, wherein the selecting item further comprises generating a user name according to a predetermined style;
    其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在字符串库,包括:Wherein, the stored word, word and/or phrase forming a string list is stored in a string library, including:
    将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in a string library;
    所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
    若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  12. 根据权利要求8所述的生成用户名的方法,其特征在于,所述选择项还包括按照预定风格生成用户名;The method for generating a user name according to claim 8, wherein the selecting item further comprises generating a user name according to a predetermined style;
    其中,所述将获取到的所述字、词和/或短语形成字符串列表保存在第二库中,包括:The storing the string, the word, and/or the phrase forming a string list in the second library, includes:
    将获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在第二库中;The obtained words, words and/or phrases are classified according to a predetermined style, and the formed list of different styles of strings is saved in the second library;
    所述根据所述选择,为所述用户自动生成用户名,包括:The automatically generating a username for the user according to the selection, including:
    若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名,则根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。 If the user chooses to generate a username by nickname or choose to generate a username by name and selects to generate a username by a predetermined style, a user name that conforms to the predetermined style is automatically generated for the user according to the selection.
  13. 根据权利要求1所述的生成用户名的方法,其特征在于,所述根据所述选择,为所述用户自动生成用户名,包括:The method for generating a user name according to claim 1, wherein the automatically generating a user name for the user according to the selection comprises:
    根据所述选择,为所述用户自动生成至少两个用户名;Automatically generating at least two user names for the user according to the selection;
    接收所述用户对所述至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。Receiving, by the user, the selection of the at least two user names, and using the user name selected by the user as the user name of the user.
  14. 根据权利要求1-13任意一项所述的生成用户名的方法,其特征在于,在所述根据所述选择,为所述用户自动生成用户名之后,还包括:The method for generating a user name according to any one of claims 1 to 13, after the user is automatically generated for the user according to the selection, the method further includes:
    判断所述自动生成的用户名是否与现有的用户名相同;Determining whether the automatically generated username is the same as an existing username;
    根据所述判断的结果,若所述自动生成的用户名与现有的用户名相同,则为所述用户重新自动生成新的用户名。According to the result of the determination, if the automatically generated username is the same as the existing username, the user is automatically regenerated to generate a new username.
  15. 一种生成用户名的系统,其特征在于,包括:A system for generating a username, comprising:
    指令接收单元,用于接收用户注册用户名的指令;An instruction receiving unit, configured to receive an instruction for a user to register a user name;
    选择项提供单元,用于根据所述指令接收单元接收到的注册用户名的指令,向用户提供用户名生成方式的选择项;所述选择项包括按昵称生成用户名和按姓名生成用户名;a selection providing unit, configured to provide, according to an instruction of the registered user name received by the instruction receiving unit, a selection item of a user name generation manner; the selection item includes generating a user name by a nickname and generating a user name by a name;
    选择接收单元,用于接收用户对所述选择项提供单元提供的选择项中一个选择项的选择;Selecting a receiving unit, configured to receive a selection of one of the selection items provided by the user for the selection item providing unit;
    用户名生成单元,用于根据所述选择,为所述用户自动生成用户名。The user name generating unit is configured to automatically generate a username for the user according to the selection.
  16. 根据权利要求15所述的生成用户名的系统,其特征在于,所述选择接收单元,用于接收用户对所述选择项提供单元提供的选择项中按昵称生成用户名选择项的选择;The system for generating a user name according to claim 15, wherein the selection receiving unit is configured to receive a selection of a user name selection item by a nickname in a selection item provided by the selection item providing unit;
    其中,所述用户名生成单元,包括:The user name generating unit includes:
    第一字符串选取子单元,用于根据所述选择,从预先建立的字符串库中选取至少一个字符串;其中,所述字符串库中保存有由字、词或短语构成的字符串;a first string selection subunit, configured to select at least one character string from a pre-established string library according to the selection; wherein the string library stores a character string composed of words, words or phrases;
    昵称生成子单元,用于根据所述第一字符串选取子单元选取的所述至少一个字符串为所述用户自动生成昵称。The nickname generating subunit is configured to automatically generate a nickname for the user according to the at least one character string selected by the first character string selection subunit.
  17. 根据权利要求16所述的生成用户名的系统,其特征在于,所述昵称 生成子单元,包括:A system for generating a username according to claim 16, wherein said nickname Generate subunits, including:
    第一昵称生成模块,用于若所述第一字符串选取子单元选取的字符串为一个时,直接将选取的所述字符串作为所述用户的昵称;或者a first nickname generating module, configured to directly use the selected string as the nickname of the user if the character string selected by the first string selection subunit is one; or
    第二昵称生成模块,用于若所述第一字符串选取子单元选取的字符串为两个以上时,将所述两个以上字符串相组合生成所述用户的昵称;或者a second nickname generating module, configured to: if the character string selected by the first character string selection subunit is two or more, combine the two or more character strings to generate a nickname of the user; or
    第三昵称生成模块,用于若所述第一字符串选取子单元选取的字符串为两个以上时,将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成所述用户的昵称,或者选取拆分后的至少一个子字符串与所述第一字符串选取模块选取的所述字符串中至少一个进行组合生成所述用户的昵称。a third nickname generating module, configured to: when the first character string selection sub-unit selects two or more character strings, split the selected at least one character string into at least two sub-strings, and select at least two after splitting Combining two substrings to generate a nickname of the user, or selecting at least one of the split substrings and at least one of the string selected by the first string selection module to generate the nickname of the user .
  18. 根据权利要求16或17所述的生成用户名的系统,其特征在于,还包括:The system for generating a user name according to claim 16 or 17, further comprising:
    第一获取子单元,用于在所述第一字符串选取子单元根据所述选择,从预先建立的字符串库中选取至少一个字符串之前,从网站获取使用频度大于第一阈值的字、词和/或短语;a first obtaining subunit, configured to: before the at least one character string is selected from the pre-established string library, the first character string selecting subunit obtains a word whose usage frequency is greater than the first threshold from the website , words and/or phrases;
    第一保存子单元,用于将所述第一获取子单元获取到的所述字、词和/或短语形成字符串列表保存在字符串库中。And a first saving subunit, configured to save the list of words, words, and/or phrases formed by the first obtaining subunit in a string library.
  19. 根据权利要求15所述的生成用户名的系统,其特征在于,所述选择接收单元,用于接收用户对所述选择项提供单元提供的选择项中按姓名生成用户名选择项的选择;The system for generating a user name according to claim 15, wherein the selection receiving unit is configured to receive a selection of a user name selection item by name generated by a user for the selection item providing unit;
    其中,所述用户名生成单元,包括:The user name generating unit includes:
    姓和名选取子单元,用于根据所述选择,从预先建立的姓名库中选取姓和名;a first name and a first name sub-unit for selecting a first name and a first name from a pre-established name base according to the selection;
    姓名生成子单元,用于将所述姓和名选取子单元选取的所述姓和名相组合生成所述用户的姓名。a name generation subunit, configured to combine the last name and the name selected by the first name and the name selection subunit to generate the name of the user.
  20. 根据权利要求19所述的生成用户名的系统,其特征在于,所述姓和名选取子单元,包括:The system for generating a user name according to claim 19, wherein the first and last name selection subunits comprise:
    姓选取模块,用于根据所述选择,从预先建立的第一库中选取姓;其中,所述第一库中保存有人名姓氏列表; a surname selection module, configured to select a last name from a pre-established first library according to the selection; wherein the first library stores a list of names of people;
    名选取模块,用于从预先建立的第二库中选取名;其中,所述第二库中保存有由字、词或短语构成的字符串。a name selection module, configured to select a name from a pre-established second library; wherein the second library holds a character string consisting of words, words or phrases.
  21. 根据权利要求20所述的生成用户名的系统,其特征在于,所述名选取模块,包括:The system for generating a user name according to claim 20, wherein the name selection module comprises:
    第一名选取子模块,用于从预先建立的第二库中选取一个字符串,并将选取的所述字符串作为名;或者The first one selects a submodule for selecting a string from the pre-established second library and using the selected string as a name; or
    第二名选取子模块,用于从预先建立的第二库中选取至少两个字符串,并将所述至少两个字符串相组合生成名;或者a second selection submodule, configured to select at least two strings from the pre-established second library, and combine the at least two strings to generate a name; or
    第三名选取子模块,用于从预先建立的第二库中选取至少两个字符串,并将选取的至少一个字符串拆分成至少两个子字符串,选取拆分后的至少两个子字符串进行组合生成名,或者选取拆分后的至少一个子字符串与选取的所述字符串中至少一个进行组合生成名。The third selected sub-module is configured to select at least two strings from the pre-established second library, and split the selected at least one string into at least two sub-strings, and select at least two sub-characters after the split. The string is combined to generate a name, or at least one of the split substrings is selected to be combined with at least one of the selected strings to generate a name.
  22. 根据权利要求20或21所述的生成用户名的系统,其特征在于,还包括:The system for generating a user name according to claim 20 or 21, further comprising:
    第二保存子单元,用于将人名姓氏列表保存在第一库中;a second saving subunit, configured to save the list of names of people in the first library;
    第二获取子单元,用于从网站获取使用频度大于第二阈值的字、词和/或短语;a second obtaining subunit, configured to acquire, from the website, a word, a word, and/or a phrase whose usage frequency is greater than a second threshold;
    第三保存子单元,用于将所述第二获取子单元获取到的所述字、词和/或短语形成字符串列表保存在第二库中。And a third saving subunit, configured to save the list of words, words, and/or phrases formed by the second obtaining subunit in the second library.
  23. 根据权利要求15-22任意一项所述的生成用户名的系统,其特征在于,还包括:The system for generating a user name according to any one of claims 15 to 22, further comprising:
    第一设置单元,用于在所述用户名生成单元根据所述选择,为所述用户自动生成用户名之前,预先设置所述用户名的字符串长度;a first setting unit, configured to pre-set a character string length of the user name before the user name generating unit automatically generates a user name for the user according to the selection;
    其中,所述用户名生成单元,用于根据所述选择和所述第一设置单元预先设置的用户名的字符串长度,为所述用户自动生成符合所述预先设置的字符串长度的用户名。The user name generating unit is configured to automatically generate, for the user, a user name that meets the preset string length according to the selection and a character string length of a user name preset by the first setting unit. .
  24. 根据权利要求15-22任意一项所述的生成用户名的系统,其特征在于,还包括:The system for generating a user name according to any one of claims 15 to 22, further comprising:
    第二设置单元,用于在所述用户名生成单元根据所述选择,为所述用户 自动生成用户名之前,预先设置所述用户名应包含的字符串;a second setting unit, configured to be, for the user, the user name generating unit according to the selection Before automatically generating the username, pre-set the string that the username should contain;
    其中,所述用户名生成单元,用于根据所述选择和所述第二设置单元预先设置的所述字符串,为所述用户自动生成包含预先设置的所述字符串的用户名。25.根据权利要求18所述的生成用户名的系统,其特征在于,所述选择项还包括按照预定风格生成用户名;The user name generating unit is configured to automatically generate, for the user, a user name including the character string set in advance according to the selection and the character string preset by the second setting unit. 25. The system for generating a username according to claim 18, wherein the selecting further comprises generating a username according to a predetermined style;
    其中,所述第一保存子单元,用于将所述第一获取子单元获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在字符串库中;The first saving subunit is configured to classify the words, words, and/or phrases acquired by the first acquiring subunit according to a predetermined style, and save the formed list of different styles of strings. In the string library;
    所述用户名生成单元,用于若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名时,根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。The user name generating unit is configured to: if the user selects to generate a user name by nickname or select a user name by name, and selects to generate a user name according to a predetermined style, automatically generate, according to the selection, the user to meet the predetermined The style of the username.
  25. 根据权利要求22所述的生成用户名的系统,其特征在于,所述选择项还包括按照预定风格生成用户名;The system for generating a user name according to claim 22, wherein the selecting item further comprises generating a user name according to a predetermined style;
    所述第三保存子单元,用于将所述第二获取子单元获取到的所述字、词和/或短语按照预定的风格进行分类,并将形成的不同风格的字符串列表保存在第二库中;The third saving subunit is configured to classify the words, words, and/or phrases acquired by the second acquiring subunit according to a predetermined style, and save the formed list of different styles of characters in the first In the second library;
    所述用户名生成单元,用于若用户选择按昵称生成用户名或选择按姓名生成用户名,并选择按预定风格生成用户名时,根据所述选择,为所述用户自动生成符合所述预定的风格的用户名。The user name generating unit is configured to: if the user selects to generate a user name by nickname or select a user name by name, and selects to generate a user name according to a predetermined style, automatically generate, according to the selection, the user to meet the predetermined The style of the username.
  26. 根据权利要求15所述的生成用户名的系统,其特征在于,所述用户名生成单元,包括:The system for generating a user name according to claim 15, wherein the user name generating unit comprises:
    用户名生成子单元,用于根据所述选择,为所述用户自动生成至少两个用户名;a user name generating subunit, configured to automatically generate at least two user names for the user according to the selection;
    用户名选择子单元,用于接收所述用户对所述用户名生成子单元自动生成的至少两个用户名的选择,将用户选中的用户名作为所述用户的用户名。The user name selection subunit is configured to receive the user's selection of at least two user names automatically generated by the user name generation subunit, and use the user name selected by the user as the user name of the user.
  27. 根据权利要求15-27任意一项所述的生成用户名的系统,其特征在于,还包括:The system for generating a user name according to any one of claims 15-27, further comprising:
    判断单元,用于在所述用户名生成单元根据所述选择,为所述用户自动生成用户名之后,判断所述自动生成的用户名是否与现有的用户名相同; a determining unit, configured to determine, after the user name generating unit automatically generates a user name for the user according to the selection, whether the automatically generated user name is the same as an existing user name;
    通知单元,用于根据所述判断单元判断的结果,若所述自动生成的用户名与现有的用户名相同,则通知所述用户名生成单元为所述用户重新自动生成新的用户名。 The notification unit is configured to notify the user name generating unit to automatically generate a new user name for the user if the automatically generated user name is the same as the existing user name according to the result of the determining by the determining unit.
PCT/CN2015/082091 2014-06-24 2015-06-23 Method and system for generating user name WO2015196975A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410286209.9A CN104038411B (en) 2014-06-24 2014-06-24 A kind of method and system for generating user name
CN201410286209.9 2014-06-24

Publications (1)

Publication Number Publication Date
WO2015196975A1 true WO2015196975A1 (en) 2015-12-30

Family

ID=51469005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082091 WO2015196975A1 (en) 2014-06-24 2015-06-23 Method and system for generating user name

Country Status (2)

Country Link
CN (1) CN104038411B (en)
WO (1) WO2015196975A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038411B (en) * 2014-06-24 2017-09-05 广州猎豹网络科技有限公司 A kind of method and system for generating user name
CN108595395B (en) * 2018-03-21 2022-02-25 创新先进技术有限公司 Nickname generation method, device and equipment
CN110716964A (en) * 2019-09-19 2020-01-21 卓尔智联(武汉)研究院有限公司 Newborn naming method based on GRU network, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193129A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 Generation method and device for authentication user name
US20080133512A1 (en) * 2006-11-30 2008-06-05 Microsoft Corporation User Name Generation
CN102663303A (en) * 2012-04-17 2012-09-12 李凯 Method for exercising permission by mobile equipment
CN104038411A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and system for generating user name

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272237B (en) * 2008-04-22 2010-10-06 北京飞天诚信科技有限公司 Method and system for automatically generating and filling login information
US8910256B2 (en) * 2008-08-08 2014-12-09 Microsoft Corporation Form filling with digital identities, and automatic password generation
CN103067373A (en) * 2012-12-20 2013-04-24 天津书生投资有限公司 User registration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193129A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 Generation method and device for authentication user name
US20080133512A1 (en) * 2006-11-30 2008-06-05 Microsoft Corporation User Name Generation
CN102663303A (en) * 2012-04-17 2012-09-12 李凯 Method for exercising permission by mobile equipment
CN104038411A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and system for generating user name

Also Published As

Publication number Publication date
CN104038411A (en) 2014-09-10
CN104038411B (en) 2017-09-05

Similar Documents

Publication Publication Date Title
TWI690919B (en) Method and device for recognizing speech keyword, terminal, server, computer readable storage medium, and computer program product
US10817786B2 (en) Multi-round session interaction method and system, and computer device
US9710455B2 (en) Feature text string-based sensitive text detecting method and apparatus
WO2017084541A1 (en) Method and apparatus for sending expression image during call session
CN111061750A (en) Query processing method and device and computer readable storage medium
US8126973B2 (en) System and method for incorporating social networking maps in collaboration tooling and devices
TWI536188B (en) Method and system for searching applications
RU2012103186A (en) DETERMINING USER-SPECIFIC SEMANTICS OF LOCATION FROM USER DATA
US10783874B2 (en) Method and apparatus for providing voice feedback information to user in call
EP3164795A1 (en) Prompting login account
JP6608972B2 (en) Method, device, server, and storage medium for searching for group based on social network
US9524320B2 (en) Collection and storage of a personalized, searchable, unstructured corpora
WO2017206376A1 (en) Searching method, searching device and non-volatile computer storage medium
WO2016015431A1 (en) Search method, apparatus and device and non-volatile computer storage medium
JP6029192B2 (en) Input support system, input support method, and input support program
WO2015196975A1 (en) Method and system for generating user name
JP6932360B2 (en) Object search method, device and server
US20140201279A1 (en) System and method for contact merge management
CN108121455A (en) Identify method and device for correcting
US20170169102A1 (en) Method and electronic device for controlling data query
US20150234872A1 (en) Computer, data processing method, and non-transitory storage medium
US20180018389A1 (en) Method and apparatus for keyword-based text retrieval
JP5622880B2 (en) Item recommendation system, item recommendation method, and item recommendation program
US20150363473A1 (en) Direct answer triggering in search
WO2017075974A1 (en) Input sequence processing method, apparatus, device, and non-volatile computer storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15811710

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.05.17)

122 Ep: pct application non-entry in european phase

Ref document number: 15811710

Country of ref document: EP

Kind code of ref document: A1