aboutsummaryrefslogtreecommitdiff
path: root/lib/name.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14chore: remove ts-generated source filesShinigami921-258/+0
2022-01-11chore: format lib without locales (#66)Shinigami1-35/+65
2021-03-22Linting fixes for `./lib`Marak1-26/+26
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-6/+6
Current status: - moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype - moved respective test from random.unit to datatype.unit - tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called - adapted all lib files that use moved methods (mostly number) - adapted tests of respective files to spy on the correct method - adapted README in order to promote usage of method that logs a DeprecationWarning
2021-02-17Adds support for binary gender definitionsMarak1-2/+6
2020-08-27Merge pull request #713 from jonny64/masterMarak1-0/+21
locale ru: add name.middleName with russian gender for russian passport (отчество)
2018-10-11locale ru: add name.middleName with russian genderMaksim Gruzdev1-0/+21
2018-08-09Added support for strings in first name with genderkstamant1-0/+10
2017-10-12Merge pull request #360 from landretk/masterMarak1-3/+9
Added gendered first names to en locale
2017-09-03[api] [fix] [minor] Wrong scope for gender Marak1-2/+1
2017-09-03[api] Added 71 additional gender optionsMarak1-0/+11
* Adds new gender options for `en` locality * Updates example page to use gender * Still needs translations for other locales
2016-03-30Added gendered names to en localeKeegan Landreth1-3/+9
2016-03-20Fix name suffixesLogan Allred1-1/+1
Fixes names so that it puts suffixes at the end of names instead of prefixes Conflicts: lib/name.js
2016-03-03Install jsdoc and add doclet stubs for all methodsTobias Witt1-0/+70
Descriptions are taken from existing comments if available. The address module already has some new sample descriptions.
2015-12-09adjust method to allow for gender based prefixesCarl Sutton1-6/+16
Mr Jane Smith is ok, but could be better.
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-14/+14
Set default max random number to 99999. Added default arguments to some methods.
2015-07-08[refactor] [major] Adds incremental browser builds. Switch to using ↵Marak1-83/+81
prototype for internal API. Previous usage of `module.parent` is not acceptable. Locale information is now passed into Faker constructor. Closes #125
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-1/+1
the default behavior of requiring all locale data. #125 #167
2015-07-06[merge] Support gender in namesMarak1-12/+28
2015-07-05[merge] Add basic Ukrainian supportMarak1-1/+1
2015-07-05[fix] [minor] TypoMarak1-1/+1
2015-07-05[merge] [api] Add name.jobTitleMarak1-0/+18
2015-06-27Add basic Ukrainian support and bugfixesAnatoliy Yevpack1-1/+1
2015-06-11create title functionIvan Velasquez1-3/+11
2015-02-17More readable gender choosingMarat Dyatko1-3/+9
2015-02-17Support gender in namesMarat Dyatko1-12/+22
2014-12-09Add new jobTitle function to name object.JKillian1-0/+20
I had to make a few concessions when doing this. Ideally I would have added this function under the 'company' module, but I chose to add it to the 'name' object instead, as the data happened to already exist in the locale files under 'name.title'. However, I felt that the field names in the locale files were confusing, so their wrappers in the name module are renamed for clarity. For example, faker.name.jobArea() returns a random element from locale.name.title.level. In my opinion, 'jobArea' was a much better description of the data than 'level'. Finally, fixed a bug in one unit test which didn't restore a function to its original state after watching it.
2014-11-20Fixed male/female split check on findName()Ari Gesher1-2/+2
(It was failing on locales that use a fallback)
2014-10-21[fix] ru locale now works with name.firstName and name.lastName methods #132Marak1-2/+23
2014-09-22[api] [minor] Added default values for more methods. Cleaned up image ↵Marak1-4/+6
module. Use a less specific regex for usernames.
2014-09-21[api] Added hacker module. Added default values for all methods. Cleaned up ↵Marak1-9/+0
errant methods. Added mustache helper.
2014-09-16[api] Add ability to generate contextual data for user names and emails. #68Marak1-3/+3
2014-09-15[api] [refactor] Removed definitions.js file. All data definitions are now ↵Marak1-4/+4
loaded from localized data sets, en is default locale. #116
2014-09-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak1-8/+17
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-09-08Removed "this" from functions, breaks mixinsgoliatone1-3/+3
Conflicts: lib/name.js
2014-08-13Fix context of findNameJuan Pablo1-3/+3
Using this, you could change the context of the method, and an error was sent. By removing the context and using _name, this does not happen.
2014-05-17Moving to major new version for change of package name for uppercase to ↵FotoVerite1-8/+8
lowercase.
2014-05-17Adds female and male name methods. #NOTE they will return a random name and ↵FotoVerite1-0/+9
working as intended.
2014-02-19reverts f2f37f8FotoVerite1-16/+4
2013-11-05My take on separating male and female names. Tests passing, Coverage restored.cyanos31-9/+17
2013-06-27Add gender to name classRichard Butler1-4/+8
2013-06-27Split male and female names into two groupsRichard Butler1-2/+2
2013-06-12Revert "Merge pull request #59 from rschmukler/this-fix"FotoVerite1-3/+3
This reverts commit dceaccf2ca2c2ff217436404c41f2bf69f7577f6, reversing changes made to 1d28802e388277a6b75efbaa1589027879df101f.
2013-06-05Switched from this to var name to avoid context issuesRyan Schmukler1-3/+3
2013-01-07using this instead of _name for internal referencesBryan Donovan1-3/+3
2013-01-07namespacing with 'Faker'Bryan Donovan1-6/+6
2013-01-05refactoring to use random.jsBryan Donovan1-7/+6
2013-01-05refactored name.jsBryan Donovan1-15/+20
2013-01-05adding test/name.unit.jsBryan Donovan1-8/+7
2013-01-05linted lorem.jsBryan Donovan1-4/+4