Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #628 from phoenixgao/master
Browse files Browse the repository at this point in the history
Correct Chinese names
  • Loading branch information
fzaninotto committed Jul 12, 2015
2 parents 70bccd4 + 7f056f4 commit fb1a614
Showing 1 changed file with 62 additions and 32 deletions.
94 changes: 62 additions & 32 deletions src/Faker/Provider/zh_CN/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,75 @@
class Person extends \Faker\Provider\Person
{
protected static $maleNameFormats = array(
'{{firstNameMale}}{{lastName}}',
'{{lastName}}{{firstNameMale}}',
);

protected static $femaleNameFormats = array(
'{{firstNameFemale}}{{lastName}}',
'{{lastName}}{{firstNameFemale}}',
);

protected static $firstNameMale = array(
'', '', '', '', '', '', '', '', '',
// below are unknown gender firstnames
'', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'',
/**
* According to http://baike.baidu.com/view/6109935.htm,
* these are the top 300 lastnames from the 6th Chinese national census of population,
* containing 299 single-character surname and 1 double-character surname '欧阳',
* so you can get random names including double-character surname but not too many.
*/
protected static $lastName = array(
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','沿','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','欧阳','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
);

protected static $firstNameFemale = array(
'', '', '', '', '',
// below are unknown gender firstnames
'', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '',
'',
protected static $firstNameMale = array(
'','','','','','','','','','',
'','','','','','','','','','',
'','','','','','','','','','',
'','','建华','','','','','','建国','建军',
'','','志强','','','','','','','',
'全安','','','','','','','建平','嘉俊','',
'建明','子安','新华','鹏程','学明','博涛','','文彬','','',
'','','','','','振国','','','昱然','',
'','','','国庆','哲彦','正诚','正豪','正平','正业','志诚',
'志新','志勇','志明','志强','志文','致远','智明','智勇','智敏','智渊',
);

protected static $lastName = array(
'','','','','','秀英','','','','','','','','','','','','','','秀兰','','','','',
'','桂英','','','','','','玉兰','','桂兰','','','','','','','','','','秀珍','','','',
'','','','','','','玉梅','','','玉珍','凤英','','','玉英','','红梅','','','','建华','','',
'','兰英','','','','','','建国','建军','','淑珍','春梅','海燕','','冬梅','秀荣','','桂珍','','秀云','桂荣',
'志强','秀梅','丽娟','婷婷','玉华','','','','','雪梅','淑兰','丽丽','','秀芳','','淑英','桂芳','','丽华','丹丹',
'','桂香','','','淑华','','秀华','桂芝','','','小红','金凤','','','','红霞','建平','','桂花','','凤兰'

protected static $firstNameFemale = array(
'','','','','敏静','秀英','','','','',
'文娟','','文君','','','明霞','秀兰','','','桂芬',
'','桂英','','','','','玉兰','桂兰','','',
'','秀珍','','依琳','','','','馨予','玉珍','凤英',
'','','玉英','','红梅','','','','兰英','',
'','爱华','淑珍','春梅','海燕','','冬梅','秀荣','','桂珍',
'','秀云','桂荣','秀梅','丽娟','婷婷','玉华','','雪梅','淑兰',
'丽丽','','秀芳','','淑英','桂芳','丽华','丹丹','桂香','淑华',
'秀华','桂芝','小红','金凤','','','','红霞','','桂花',
'','凤兰','腊梅','','','','冰冰','玉梅','','',
);
}

0 comments on commit fb1a614

Please sign in to comment.