diff --git a/src/main/resources/jfairy_zh.yml b/src/main/resources/jfairy_zh.yml index 9084883..a3977ac 100644 --- a/src/main/resources/jfairy_zh.yml +++ b/src/main/resources/jfairy_zh.yml @@ -8,14 +8,34 @@ lastNames: { male: [赵, 钱, 孙, 李, 周, 吴, 郑, 王, 冯, 陈, 楚, 卫, 苏, 蒋, 沈, 韩, 杨, 张, 黄, 徐, 刘], female: [赵, 钱, 孙, 李, 周, 吴, 郑, 王, 冯, 陈, 楚, 卫, 苏, 蒋, 沈, 韩, 杨, 张, 黄, 徐, 刘] } -personalEmails: [gmail.com, 163.com, 126.com, qq.com, sina.com, sohu.com] +# Enhanced personal email domains with major Chinese providers +personalEmails: [gmail.com, 163.com, 126.com, qq.com, sina.com, sohu.com, aliyun.com, outlook.com, hotmail.com, 139.com, 189.cn] companyNames: [数说故事, 网易之, 腾企鹅, 千度, 京西, 后海金融, 互动派, 塔布数据, 阿狸巴巴, 图匠] companySuffixes: [科技有限公司, 股份有限公司, 集团, 有限公司, 金融投资有限公司] companyEmails: [info, contact, company, office, org, com] text: 我们 你好 工资 赚钱 是 非常 魅力 美丽 运动 自由 风雅 要求 感情 代码 研发 神奇 动物 魔法 忍术 你们 的 手机 小米 苹果 猫 狗 相信 很多 一样 梦想 随身 携带 操作 系统 无论 哪里 只要 电脑 可以 随时 运行 自己 配置 博文 一步步 如何 驱动 加载 想象 一个 场景 也许 使用 设置 -telephone_number_formats: ['###-####-####', '###########', '########'] +# Enhanced telephone number formats +# Mobile phone prefixes for major Chinese carriers: +# - China Mobile: 134-139, 150-152, 157-159, 182-184, 187-188, 195, 198 +# - China Unicom: 130-132, 155-156, 185-186, 175-176, 196 +# - China Telecom: 133, 153, 173, 177, 180-181, 189, 191, 193, 199 +# - Virtual operators: 170, 171 +# Landline formats with city codes: +# - Beijing: 010, Shanghai: 021, Guangzhou: 020, Shenzhen: 0755 +telephone_number_formats: [ + '130########', '131########', '132########', '133########', '134########', + '135########', '136########', '137########', '138########', '139########', + '150########', '151########', '152########', '153########', '155########', + '156########', '157########', '158########', '159########', '170########', + '171########', '173########', '175########', '176########', '177########', + '178########', '180########', '181########', '182########', '183########', + '184########', '185########', '186########', '187########', '188########', + '189########', '191########', '193########', '195########', '196########', + '198########', '199########', + '010-#######', '021-#######', '020-#######', '0755-#######' +] postal_code: ['######'] diff --git a/src/test/groovy/com/devskiller/jfairy/FairyZhSpec.groovy b/src/test/groovy/com/devskiller/jfairy/FairyZhSpec.groovy index ca94375..9e8bda1 100644 --- a/src/test/groovy/com/devskiller/jfairy/FairyZhSpec.groovy +++ b/src/test/groovy/com/devskiller/jfairy/FairyZhSpec.groovy @@ -43,14 +43,14 @@ class FairyZhSpec extends Specification { when: Person person = fairy.person() then: - person.address.addressLine1 == '南京市中山大道122号 101房' + person.address.addressLine1 == '上海市外环西路124号' } def "Should create Chinese city"() { when: Person person = fairy.person() then: - person.address.city == '南京' + person.address.city == '上海' } /********************