update bots

This commit is contained in:
2026-05-18 14:15:59 +07:00
parent b0ce866a2f
commit b9054d178e
5775 changed files with 832577 additions and 38 deletions

View File

@@ -0,0 +1,697 @@
from collections import OrderedDict
from .. import Provider as PersonProvider
class Provider(PersonProvider):
formats = ["{{last_name}}{{first_name}}"]
first_names_male = [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"建华",
"",
"",
"",
"",
"建国",
"建军",
"",
"",
"志强",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"红霞",
"建平",
]
first_names_female = [
"",
"",
"",
"",
"秀英",
"",
"",
"",
"",
"秀兰",
"",
"",
"桂英",
"",
"",
"",
"玉兰",
"桂兰",
"",
"",
"",
"秀珍",
"",
"玉梅",
"玉珍",
"凤英",
"",
"玉英",
"",
"",
"",
"红梅",
"",
"",
"兰英",
"",
"",
"",
"",
"淑珍",
"春梅",
"海燕",
"冬梅",
"秀荣",
"桂珍",
"",
"秀云",
"桂荣",
"秀梅",
"丽娟",
"婷婷",
"玉华",
"",
"雪梅",
"淑兰",
"丽丽",
"",
"秀芳",
"",
"淑英",
"桂芳",
"丽华",
"丹丹",
"桂香",
"淑华",
"",
"秀华",
"桂芝",
"小红",
"金凤",
"",
"桂花",
"",
"凤兰",
]
first_names = first_names_male + first_names_female
# From https://zh.wikipedia.org/wiki/%E4%B8%AD%E5%9B%BD%E5%A7%93%E6%B0%8F%E6%8E%92%E5%90%8D
last_names = OrderedDict(
(
("", 7.170),
("", 7.000),
("", 6.740),
("", 5.100),
("", 4.610),
("", 3.220),
("", 2.450),
("", 2.000),
("", 2.000),
("", 1.900),
("", 1.450),
("", 1.380),
("", 1.290),
("", 1.280),
("", 1.160),
("", 1.130),
("", 1.130),
("", 1.060),
("", 1.000),
("", 0.950),
("", 0.930),
("", 0.850),
("", 0.760),
("", 0.700),
("", 0.690),
("", 0.660),
("", 0.620),
("", 0.620),
("", 0.610),
("", 0.600),
("", 0.580),
("", 0.580),
("", 0.560),
("", 0.530),
("", 0.520),
("", 0.520),
("", 0.510),
("", 0.500),
("", 0.480),
("", 0.480),
("", 0.480),
("", 0.480),
("", 0.470),
("", 0.460),
("", 0.450),
("", 0.450),
("", 0.450),
("", 0.430),
("", 0.410),
("", 0.410),
("", 0.400),
("", 0.400),
("", 0.400),
("", 0.400),
("", 0.390),
("", 0.380),
("", 0.380),
("", 0.370),
("", 0.360),
("", 0.360),
("", 0.360),
("", 0.350),
("", 0.340),
("", 0.340),
("", 0.330),
("", 0.320),
("", 0.320),
("", 0.320),
("", 0.310),
("", 0.300),
("", 0.300),
("", 0.290),
("", 0.290),
("", 0.290),
("", 0.280),
("", 0.280),
("", 0.270),
("", 0.260),
("", 0.260),
("", 0.240),
("", 0.240),
("", 0.220),
("", 0.210),
("", 0.210),
("", 0.210),
("", 0.210),
("", 0.200),
("", 0.200),
("", 0.200),
("", 0.200),
("", 0.200),
("", 0.190),
("", 0.190),
("", 0.190),
("", 0.180),
("", 0.180),
("", 0.180),
("", 0.180),
("", 0.180),
("", 0.170),
("", 0.170),
("", 0.170),
("", 0.160),
("", 0.160),
("", 0.160),
("", 0.150),
("", 0.150),
("", 0.150),
("", 0.150),
("", 0.150),
("", 0.140),
("", 0.130),
("", 0.130),
("", 0.130),
("", 0.130),
("", 0.130),
("", 0.130),
("", 0.120),
("", 0.120),
("", 0.120),
("", 0.120),
("", 0.120),
("", 0.110),
("", 0.110),
("", 0.110),
("", 0.110),
("", 0.110),
("", 0.110),
("", 0.110),
("", 0.110),
("", 0.100),
("", 0.100),
("", 0.100),
("", 0.100),
("", 0.100),
("", 0.100),
("", 0.095),
("", 0.090),
("", 0.087),
("", 0.083),
("", 0.082),
("", 0.082),
("", 0.082),
("", 0.082),
("", 0.080),
("", 0.080),
("", 0.079),
("", 0.079),
("", 0.078),
("", 0.078),
("", 0.076),
("", 0.076),
("", 0.076),
("", 0.075),
("", 0.075),
("", 0.075),
("", 0.075),
("", 0.075),
("", 0.074),
("", 0.074),
("", 0.073),
("", 0.073),
("", 0.073),
("", 0.072),
("", 0.072),
("", 0.071),
("", 0.070),
("", 0.069),
("欧阳", 0.068),
("", 0.065),
("", 0.065),
("", 0.062),
("", 0.062),
("", 0.061),
("", 0.061),
("", 0.061),
("", 0.056),
("", 0.056),
("", 0.055),
("", 0.055),
("", 0.055),
("", 0.053),
("", 0.053),
("", 0.052),
("", 0.052),
("", 0.050),
("", 0.050),
("", 0.048),
("", 0.047),
("", 0.044),
("", 0.043),
("", 0.043),
("", 0.043),
("", 0.043),
("", 0.043),
("", 0.043),
("", 0.043),
("", 0.043),
("", 0.042),
("", 0.041),
("", 0.041),
("", 0.040),
("", 0.040),
("", 0.040),
("", 0.039),
("", 0.039),
("", 0.039),
("", 0.039),
("", 0.039),
("", 0.038),
("", 0.038),
("", 0.038),
("", 0.036),
("", 0.036),
("", 0.035),
("", 0.035),
("", 0.034),
("", 0.033),
("", 0.033),
("", 0.033),
("", 0.033),
("", 0.033),
("", 0.032),
("", 0.032),
("", 0.032),
("", 0.032),
("", 0.032),
("", 0.032),
("", 0.032),
("", 0.031),
("", 0.031),
("", 0.030),
("", 0.030),
("", 0.030),
("", 0.030),
("", 0.030),
("", 0.030),
("", 0.029),
("", 0.029),
("", 0.029),
("", 0.028),
("", 0.028),
("", 0.027),
("", 0.027),
("", 0.027),
("", 0.026),
("", 0.026),
("", 0.026),
("", 0.026),
("", 0.025),
("", 0.025),
("", 0.025),
("", 0.025),
("", 0.025),
("", 0.024),
("", 0.024),
("", 0.023),
("", 0.023),
("", 0.023),
("", 0.023),
("", 0.230),
("", 0.022),
("", 0.022),
("", 0.022),
("", 0.021),
("", 0.021),
("", 0.021),
("", 0.021),
("", 0.021),
("", 0.021),
("", 0.020),
("", 0.020),
("", 0.020),
("", 0.020),
("", 0.020),
("", 0.019),
("", 0.019),
("", 0.017),
("", 0.017),
("", 0.017),
("", 0.017),
("", 0.017),
("", 0.017),
("", 0.017),
("", 0.016),
("", 0.016),
("", 0.016),
("", 0.016),
("", 0.016),
("", 0.015),
("", 0.015),
("", 0.015),
("", 0.015),
("", 0.015),
("", 0.015),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.014),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.013),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.012),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("", 0.011),
("鹿", 0.011),
("", 0.011),
("", 0.011),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.010),
("", 0.0094),
("", 0.0093),
("宿", 0.0093),
("", 0.0092),
("", 0.0091),
("", 0.0091),
("", 0.0090),
("", 0.0090),
("", 0.0089),
("", 0.0088),
("", 0.0086),
("", 0.0084),
("", 0.0084),
("", 0.0084),
("", 0.0083),
("", 0.0082),
("", 0.0082),
("", 0.0081),
("", 0.0079),
("", 0.0077),
("", 0.0076),
("", 0.0076),
("", 0.0076),
("", 0.0076),
("", 0.0074),
("", 0.0074),
("", 0.0074),
("", 0.0073),
("", 0.0072),
("", 0.0072),
("", 0.0071),
("", 0.0071),
("", 0.0070),
("", 0.0069),
("", 0.0068),
("", 0.0068),
("", 0.0067),
("", 0.0067),
("", 0.0067),
("", 0.0067),
("", 0.0066),
("", 0.0065),
("", 0.0065),
("", 0.0064),
("", 0.0064),
("", 0.0063),
("", 0.0063),
("", 0.0060),
("", 0.0060),
("", 0.0060),
)
)
romanized_formats = ("{{first_romanized_name}} {{last_romanized_name}}",)
# From https://en.wikipedia.org/wiki/Chinese_given_name#Common_Chinese_names,
# with accents stripped
first_romanized_names = (
"Chao",
"Fang",
"Gang",
"Guiying",
"Jie",
"Jing",
"Juan",
"Jun",
"Lei",
"Li",
"Min",
"Ming",
"Na",
"Ping",
"Qiang",
"Tao",
"Wei",
"Xia",
"Xiulan",
"Xiuying",
"Yang",
"Yong",
"Yan",
)
# From https://en.wikipedia.org/wiki/List_of_common_Chinese_surnames
# with accents stripped
last_romanized_names = (
"Bai",
"Cai",
"Cao",
"Chang",
"Chen",
"Cheng",
"Cui",
"Dai",
"Deng",
"Ding",
"Dong",
"Du",
"Duan",
"Fan",
"Fang",
"Feng",
"Fu",
"Gao",
"Gong",
"Gu",
"Guo",
"Han",
"Hao",
"He",
"Hou",
"Hu",
"Huang",
"Jia",
"Jiang",
"Jin",
"Kang",
"Kong",
"Lai",
"Lei",
"Li",
"Liang",
"Liao",
"Lin",
"Liu",
"Long",
"Lu",
"Luo",
"Ma",
"Mao",
"Meng",
"Mo",
"Pan",
"Peng",
"Qian",
"Qiao",
"Qin",
"Qiu",
"Ren",
"Shao",
"Shen",
"Shi",
"Song",
"Su",
"Sun",
"Tan",
"Tang",
"Tao",
"Tian",
"Wan",
"Wang",
"Wei",
"Wen",
"Wu",
"Xia",
"Xiang",
"Xiao",
"Xie",
"Xiong",
"Xu",
"Xue",
"Yan",
"Yang",
"Yao",
"Ye",
"Yi",
"Yin",
"Yu",
"Yuan",
"Zeng",
"Zhang",
"Zhao",
"Zheng",
"Zhong",
"Zhou",
"Zhu",
"Zou",
)
def romanized_name(self) -> str:
"""
:example: 'Chao Bai'
"""
pattern: str = self.random_element(self.romanized_formats)
return self.generator.parse(pattern)
def first_romanized_name(self) -> str:
"""
:example: 'Chao'
"""
return self.random_element(self.first_romanized_names)
def last_romanized_name(self) -> str:
"""
:example: 'Chao'
"""
return self.random_element(self.last_romanized_names)