@kensio/pinyinjs 1.10.3 → 1.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +3 -3
  2. package/data/core.entries +20 -16
  3. package/data/core.freq +0 -0
  4. package/data/core.keys +4 -0
  5. package/data/full.counts +0 -0
  6. package/data/full.entries +33 -22
  7. package/data/full.freq +0 -0
  8. package/data/full.keys +11 -0
  9. package/data/manifest.json +12 -12
  10. package/data/standard.entries +29 -28
  11. package/data/standard.freq +0 -0
  12. package/data/standard.keys +13 -12
  13. package/dist/decode/particle-rule.d.ts +8 -10
  14. package/dist/decode/particle-rule.d.ts.map +1 -1
  15. package/dist/decode/particle-rule.js +67 -1
  16. package/dist/decode/particle-rule.js.map +1 -1
  17. package/dist/decode/reading-rules.d.ts +1 -0
  18. package/dist/decode/reading-rules.d.ts.map +1 -1
  19. package/dist/decode/reading-rules.js +3 -0
  20. package/dist/decode/reading-rules.js.map +1 -1
  21. package/dist/decode/wenshu-rule.d.ts +17 -0
  22. package/dist/decode/wenshu-rule.d.ts.map +1 -0
  23. package/dist/decode/wenshu-rule.js +44 -0
  24. package/dist/decode/wenshu-rule.js.map +1 -0
  25. package/dist/dictionary/given-names.d.ts +46 -0
  26. package/dist/dictionary/given-names.d.ts.map +1 -0
  27. package/dist/dictionary/given-names.js +65 -0
  28. package/dist/dictionary/given-names.js.map +1 -0
  29. package/dist/dictionary/merge-types.d.ts +6 -0
  30. package/dist/dictionary/merge-types.d.ts.map +1 -1
  31. package/dist/dictionary/merge-types.js.map +1 -1
  32. package/dist/dictionary/merge.d.ts.map +1 -1
  33. package/dist/dictionary/merge.js +9 -2
  34. package/dist/dictionary/merge.js.map +1 -1
  35. package/dist/dictionary/proper-noun.d.ts +3 -1
  36. package/dist/dictionary/proper-noun.d.ts.map +1 -1
  37. package/dist/dictionary/proper-noun.js +6 -2
  38. package/dist/dictionary/proper-noun.js.map +1 -1
  39. package/dist/dictionary/reference-readings.d.ts.map +1 -1
  40. package/dist/dictionary/reference-readings.js +24 -0
  41. package/dist/dictionary/reference-readings.js.map +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/index.js.map +1 -1
  46. package/dist/orthography/capitals.d.ts +5 -0
  47. package/dist/orthography/capitals.d.ts.map +1 -1
  48. package/dist/orthography/capitals.js +20 -1
  49. package/dist/orthography/capitals.js.map +1 -1
  50. package/dist/orthography/punctuation.d.ts.map +1 -1
  51. package/dist/orthography/punctuation.js +45 -4
  52. package/dist/orthography/punctuation.js.map +1 -1
  53. package/package.json +1 -1
package/README.md CHANGED
@@ -157,9 +157,9 @@ Load the dictionary once and keep it. It is immutable and safe to share.
157
157
 
158
158
  | Tier | Entries | Download (brotli) | Contains |
159
159
  | ---------- | ------: | ----------------: | ---------------------- |
160
- | `core` | 16,970 | 70 KB | single characters only |
161
- | `standard` | 66,970 | 377 KB | the most common words |
162
- | `full` | 461,563 | 2,378 KB | every word |
160
+ | `core` | 16,974 | 70 KB | single characters only |
161
+ | `standard` | 66,974 | 377 KB | the most common words |
162
+ | `full` | 461,571 | 2,378 KB | every word |
163
163
 
164
164
  `full` is the default. The tiers are nested. A page can load `standard` first,
165
165
  convert with it, and reload as `full` arrives.
package/data/core.entries CHANGED
@@ -73,6 +73,7 @@ she4
73
73
  tiao3
74
74
  lian2
75
75
  mian3 tian3
76
+ weng1
76
77
  sa4
77
78
  tuo2
78
79
  hun2
@@ -346,7 +347,7 @@ xin4 zg
346
347
  wei3 wei4 j
347
348
  zhu4 zg
348
349
  ze5 zg
349
- xian2
350
+ xian2 xuan2
350
351
  bo2 nr bai3,bo5
351
352
  gu1 n gu4
352
353
  ni3 zg
@@ -1516,7 +1517,7 @@ pou3 zg
1516
1517
  pao2 v
1517
1518
  bi4 zg
1518
1519
  fu2
1519
- yang1
1520
+ yang1 yang3
1520
1521
  he2
1521
1522
  ze2 r zha1,za3
1522
1523
  he2 ,han4 c huo5,he4,hu2,huo2,huo4,he5
@@ -2226,7 +2227,7 @@ kong1 zg
2226
2227
  tang3 chong3 shang3
2227
2228
  dong1 zg
2228
2229
  dai4 zg
2229
- tan4 zg
2230
+ tan4 zg tan2
2230
2231
  an3
2231
2232
  chu4 zg
2232
2233
  beng3
@@ -2563,7 +2564,7 @@ bi3 zg
2563
2564
  yu2 x
2564
2565
  tuo3 a
2565
2566
  feng1
2566
- yuan2 zg
2567
+ yuan2 zg wan4
2567
2568
  fang2 zg fang1
2568
2569
  wu3
2569
2570
  yu4 g
@@ -2746,7 +2747,7 @@ ying1 zg
2746
2747
  mei4 zg
2747
2748
  yuan4 zg yuan2
2748
2749
  zheng1 zg
2749
- shi4
2750
+ shi4 ti2
2750
2751
  xie4
2751
2752
  tuo3 zg duo4
2752
2753
  mao4
@@ -2943,7 +2944,7 @@ yi2 zg
2943
2944
  jing3 zg
2944
2945
  mi4 nr fu2
2945
2946
  zhu3 zg
2946
- dang4 g
2947
+ dang4 g tan4
2947
2948
  zong1 nr zong5
2948
2949
  guan1 n
2949
2950
  zhou4 zg
@@ -4010,7 +4011,7 @@ kong3 d
4010
4011
  gui3
4011
4012
  heng2 nr p
4012
4013
  xi1 zg
4013
- jiao3 zg
4014
+ jiao3 zg xiao4
4014
4015
  shu4 nr
4015
4016
  yang4 n
4016
4017
  hui4 g
@@ -4700,7 +4701,7 @@ dao2
4700
4701
  wo3
4701
4702
  ai2 zg
4702
4703
  juan3
4703
- chen1
4704
+ chen1 tian3
4704
4705
  chui2 v
4705
4706
  jie2 ns p
4706
4707
  na4 v
@@ -6870,7 +6871,7 @@ song1 g
6870
6871
  tian3
6871
6872
  pi4 ns
6872
6873
  dan4 a
6873
- yu4
6874
+ yu4 xu4
6874
6875
  yu1 v
6875
6876
  lu4 g
6876
6877
  gan4 zg
@@ -7109,7 +7110,7 @@ shang1 zg
7109
7110
  han4 j
7110
7111
  lian2 ns
7111
7112
  lan3 v
7112
- chi2
7113
+ chi2 si1
7113
7114
  xuan2 n
7114
7115
  yi1 g
7115
7116
  man4 a
@@ -7421,7 +7422,7 @@ kai4 zg
7421
7422
  hong1 zg
7422
7423
  lao4 n luo4
7423
7424
  zhu2 n
7424
- xuan3 zg
7425
+ xuan3 zg xuan1
7425
7426
  zheng1 zg
7426
7427
  po4
7427
7428
  yan1 n yin1
@@ -7795,7 +7796,7 @@ mu4
7795
7796
  bei4 x
7796
7797
  pi1
7797
7798
  yi2
7798
- sheng1
7799
+ sheng1 xing1
7799
7800
  pao2 n
7800
7801
  xia2 zg
7801
7802
  hu2 nr
@@ -7991,7 +7992,7 @@ qiang1
7991
7992
  ling2 nr
7992
7993
  dai4 n
7993
7994
  dian4 zg
7994
- xuan2 zg
7995
+ xuan2 zg xian2
7995
7996
  xi3 ng
7996
7997
  bo1 n
7997
7998
  ci3 ci1
@@ -8052,6 +8053,7 @@ xuan4
8052
8053
  lang2 ns
8053
8054
  li3 n li5
8054
8055
  xiu4 zg
8056
+ fu2
8055
8057
  liu2 ns
8056
8058
  ya2 ye2 g
8057
8059
  li2 zg
@@ -8132,6 +8134,7 @@ zhao3
8132
8134
  yao2 j
8133
8135
  ai4 x
8134
8136
  bin1
8137
+ shu1 tu1
8135
8138
  chang2 zg
8136
8139
  kun1
8137
8140
  cong1
@@ -11436,6 +11439,7 @@ meng2 v meng1,meng3
11436
11439
  suan4 n
11437
11440
  li4 vg
11438
11441
  ju3 zg
11442
+ xi1
11439
11443
  bang4 pang2
11440
11444
  chu2 zg
11441
11445
  huo4
@@ -11931,7 +11935,7 @@ qian3
11931
11935
  rui4 zg
11932
11936
  ni2 zg
11933
11937
  qing1 n
11934
- wei4
11938
+ wei4 wei3
11935
11939
  liang3 zg
11936
11940
  guo3 n
11937
11941
  wan1 v
@@ -14532,7 +14536,7 @@ fei4 g
14532
14536
  sui4 zg
14533
14537
  lu3 zg
14534
14538
  juan1 zg
14535
- hui4 zg
14539
+ hui4 zg wei4
14536
14540
  yu4 zg
14537
14541
  lian2 n
14538
14542
  zhuo2
@@ -16919,7 +16923,7 @@ nao2
16919
16923
  gong3
16920
16924
  geng4
16921
16925
  ying2
16922
- run2
16926
+ run2 shun4
16923
16927
  cha2
16924
16928
  mu3
16925
16929
  xi4
package/data/core.freq CHANGED
Binary file
package/data/core.keys CHANGED
@@ -73,6 +73,7 @@ B
73
73
  䠷
74
74
  䥥
75
75
  䩄
76
+ 䩺
76
77
  䬃
77
78
  䭾
78
79
  䰟
@@ -8052,6 +8053,7 @@ B
8052
8053
  琅
8053
8054
  理
8054
8055
  琇
8056
+ 琈
8055
8057
  琉
8056
8058
  琊
8057
8059
  琍
@@ -8132,6 +8134,7 @@ B
8132
8134
  瑶
8133
8135
  瑷
8134
8136
  瑸
8137
+ 瑹
8135
8138
  瑺
8136
8139
  瑻
8137
8140
  瑽
@@ -11436,6 +11439,7 @@ B
11436
11439
  蒜
11437
11440
  蒞
11438
11441
  蒟
11442
+ 蒠
11439
11443
  蒡
11440
11444
  蒢
11441
11445
  蒦
package/data/full.counts CHANGED
Binary file
package/data/full.entries CHANGED
@@ -5083,6 +5083,7 @@ bang1
5083
5083
  rong2
5084
5084
  e2
5085
5085
  weng1
5086
+
5086
5087
  ba4
5087
5088
  feng2
5088
5089
  yu1
@@ -46941,7 +46942,7 @@ zhu4 xing1
46941
46942
 
46942
46943
 
46943
46944
  ze5 zg
46944
- xian2
46945
+ xian2 xuan2
46945
46946
 
46946
46947
 
46947
46948
 
@@ -123006,8 +123007,8 @@ fu2
123006
123007
 
123007
123008
 
123008
123009
 
123009
- yang1
123010
- yang3 yan1
123010
+ yang1 yang3
123011
+ yang3 ye4
123011
123012
  he2
123012
123013
  ze2 r zha1,za3
123013
123014
  za3 ge4 r
@@ -134192,6 +134193,7 @@ guo2 hui4 da4 sha4 guo2 hui4 da4 xia4
134192
134193
  p1.2
134193
134194
  n
134194
134195
  p1
134196
+ guo2 xing1 nr p
134195
134197
 
134196
134198
 
134197
134199
  n
@@ -135609,6 +135611,7 @@ guo2 jia1
135609
135611
 
135610
135612
  j
135611
135613
  n
135614
+ guo2 xing1 nr p
135612
135615
 
135613
135616
  j
135614
135617
 
@@ -141398,7 +141401,7 @@ dong1 zg
141398
141401
  dai4 zg
141399
141402
 
141400
141403
 
141401
- tan4 zg
141404
+ tan4 zg tan2
141402
141405
  an3
141403
141406
 
141404
141407
  cai4
@@ -161498,7 +161501,7 @@ tuo3 sui2
161498
161501
  tuo3 shou3 tie1 er3 n
161499
161502
  feng1
161500
161503
 
161501
- yuan2 zg
161504
+ yuan2 zg wan4
161502
161505
  fang2 zg fang1
161503
161506
  v
161504
161507
 
@@ -164225,7 +164228,7 @@ yuan4 zg yuan2
164225
164228
 
164226
164229
  zheng1 zg
164227
164230
  qiu1
164228
- shi4
164231
+ shi4 ti2
164229
164232
  ti2 ti2
164230
164233
  xie4
164231
164234
 
@@ -165505,7 +165508,7 @@ zi3 sun1 bo1 bo5 zi3 sun1 bo1 bo1
165505
165508
  n
165506
165509
 
165507
165510
 
165508
-
165511
+ nr p
165509
165512
 
165510
165513
 
165511
165514
 
@@ -170476,7 +170479,7 @@ fu2 zi3 jian4
170476
170479
  fu2 xi1
170477
170480
  fu2 xi1 shi4
170478
170481
  zhu3 zg
170479
- dang4 g
170482
+ dang4 g tan4
170480
170483
 
170481
170484
 
170482
170485
 
@@ -170490,7 +170493,7 @@ dang4 g
170490
170493
 
170491
170494
 
170492
170495
 
170493
- nrt
170496
+ tan4 chang1 nrt
170494
170497
  v
170495
170498
  v
170496
170499
  nrt
@@ -184863,6 +184866,7 @@ xiao3 gang1 gangr5
184863
184866
  n
184864
184867
 
184865
184868
 
184869
+ nr p
184866
184870
 
184867
184871
 
184868
184872
 
@@ -224963,7 +224967,7 @@ qi1 qi1 huang2 huang2
224963
224967
 
224964
224968
 
224965
224969
 
224966
- jiao3 zg
224970
+ jiao3 zg xiao4
224967
224971
  shu4 nr
224968
224972
 
224969
224973
  l
@@ -249412,6 +249416,8 @@ la1 qian4 nz
249412
249416
  nz p1
249413
249417
  p
249414
249418
  la1 du4 zi5 n
249419
+ nr p
249420
+ nr p
249415
249421
 
249416
249422
 
249417
249423
  ns p
@@ -256389,7 +256395,7 @@ juan3 pu1 gai5 juan3 pu1 gai4 l
256389
256395
  n
256390
256396
  yue4
256391
256397
  zong3
256392
- chen1
256398
+ chen1 tian3
256393
256399
 
256394
256400
 
256395
256401
 
@@ -272702,6 +272708,7 @@ wen2 n
272702
272708
 
272703
272709
  n
272704
272710
 
272711
+ nr p
272705
272712
 
272706
272713
 
272707
272714
 
@@ -273202,6 +273209,7 @@ wen2 ben3 kuang4 n
273202
273209
  wen2 piao2
273203
273210
 
273204
273211
 
273212
+ nr p
273205
273213
 
273206
273214
  n
273207
273215
 
@@ -351609,7 +351617,7 @@ dan4 ke1 xian1 weng1
351609
351617
  z
351610
351618
 
351611
351619
 
351612
- yu4
351620
+ yu4 xu4
351613
351621
 
351614
351622
  ni2
351615
351623
  yu1 v
@@ -359749,7 +359757,7 @@ lian2 yi3
359749
359757
 
359750
359758
  lan3 v
359751
359759
  wa1
359752
- chi2
359760
+ chi2 si1
359753
359761
 
359754
359762
 
359755
359763
  gan1
@@ -366743,7 +366751,7 @@ zhu2 huan3
366743
366751
 
366744
366752
 
366745
366753
  n
366746
- xuan3 zg
366754
+ xuan3 zg xuan1
366747
366755
  hui3 zhuo2
366748
366756
  hui3 yi4
366749
366757
  hui3 ri4
@@ -380003,7 +380011,7 @@ yi2
380003
380011
  yi2 ou1 ya2
380004
380012
 
380005
380013
 
380006
- sheng1
380014
+ sheng1 xing1
380007
380015
  xing1 xing1
380008
380016
  xing1 ning2
380009
380017
  xing1 ning2
@@ -387691,7 +387699,7 @@ dian4 zg
387691
387699
  dian4 que1
387692
387700
  dian4 que1
387693
387701
  fu2
387694
- xuan2 zg
387702
+ xuan2 zg xian2
387695
387703
  xi3 ng
387696
387704
 
387697
387705
 
@@ -391297,7 +391305,8 @@ ai4 x
391297
391305
  bin1
391298
391306
 
391299
391307
 
391300
- shu1
391308
+ shu1 tu1
391309
+ tu1 fu2
391301
391310
  chang2 zg
391302
391311
  kun1
391303
391312
 
@@ -491876,6 +491885,7 @@ ai4 er3 mi3 ta3 ji1 p
491876
491885
 
491877
491886
 
491878
491887
  p
491888
+ nr p
491879
491889
 
491880
491890
  p
491881
491891
 
@@ -502122,6 +502132,7 @@ li4 bu3
502122
502132
  ju3 zg
502123
502133
 
502124
502134
  xi1
502135
+
502125
502136
  bang4 pang2
502126
502137
  chu2 zg
502127
502138
  xu2
@@ -509916,7 +509927,7 @@ qing1 n
509916
509927
  i
509917
509928
 
509918
509929
 
509919
- wei4
509930
+ wei4 wei3
509920
509931
 
509921
509932
 
509922
509933
  liang3 zg
@@ -617266,7 +617277,7 @@ juan1 zai3
617266
617277
 
617267
617278
  z
617268
617279
 
617269
- hui4 zg
617280
+ hui4 zg wei4
617270
617281
  yu4 zg
617271
617282
  lian2 n
617272
617283
  p
@@ -711662,7 +711673,7 @@ han2
711662
711673
  shen1
711663
711674
  xie2
711664
711675
  liu2
711665
- run2
711676
+ run2 shun4
711666
711677
  shun4 xi1
711667
711678
  bi4
711668
711679
  nao4
@@ -720915,7 +720926,7 @@ yao4
720915
720926
  shan1
720916
720927
  zhan3
720917
720928
  li4
720918
- dang4
720929
+ dang4 tang1
720919
720930
  xun2
720920
720931
  ying2
720921
720932
  lan4
@@ -721282,7 +721293,7 @@ chui2
721282
721293
  weng1
721283
721294
  xia2
721284
721295
  zhan3
721285
- hui4
721296
+ hui4 wei4
721286
721297
  qi1
721287
721298
  pie3
721288
721299
  yi2
package/data/full.freq CHANGED
Binary file
package/data/full.keys CHANGED
@@ -5083,6 +5083,7 @@ e人
5083
5083
  䩸
5084
5084
  䩹
5085
5085
  䩺
5086
+ 䩺靴
5086
5087
  䩻
5087
5088
  䩼
5088
5089
  䩽
@@ -134192,6 +134193,7 @@ e人
134192
134193
  国共内战
134193
134194
  国共合作
134194
134195
  国关
134196
+ 国兴
134195
134197
  国兵
134196
134198
  国具
134197
134199
  国典
@@ -135609,6 +135611,7 @@ e人
135609
135611
  國臣
135610
135612
  國臺辦
135611
135613
  國舅
135614
+ 國興
135612
135615
  國舉
135613
135616
  國航
135614
135617
  國良
@@ -184863,6 +184866,7 @@ e人
184863
184866
  小羊
184864
184867
  小羊駝
184865
184868
  小羊驼
184869
+ 小美
184866
184870
  小美洲鴕
184867
184871
  小美洲鸵
184868
184872
  小羚羊
@@ -249412,6 +249416,8 @@ e人
249412
249416
  拉美
249413
249417
  拉美西斯
249414
249418
  拉肚子
249419
+ 拉胡尔
249420
+ 拉胡爾
249415
249421
  拉胯
249416
249422
  拉脚
249417
249423
  拉脫維亞
@@ -272702,6 +272708,7 @@ e人
272702
272708
  文丐
272703
272709
  文丑
272704
272710
  文世
272711
+ 文东
272705
272712
  文东武西
272706
272713
  文丝不动
272707
272714
  文中虎
@@ -273202,6 +273209,7 @@ e人
273202
273209
  文朴
273203
273210
  文杏
273204
273211
  文杰
273212
+ 文東
273205
273213
  文東武西
273206
273214
  文林
273207
273215
  文林果
@@ -391298,6 +391306,7 @@ e人
391298
391306
  瑸斒
391299
391307
  瑸晖
391300
391308
  瑹
391309
+ 瑹琈
391301
391310
  瑺
391302
391311
  瑻
391303
391312
  瑻璷
@@ -491876,6 +491885,7 @@ e人
491876
491885
  艾特
491877
491886
  艾猳
491878
491887
  艾玛纽埃尔
491888
+ 艾琳
491879
491889
  艾瑞巴蒂
491880
491890
  艾瑪紐埃爾
491881
491891
  艾畢
@@ -502122,6 +502132,7 @@ e人
502122
502132
  蒟
502123
502133
  蒟蒻
502124
502134
  蒠
502135
+ 蒠菜
502125
502136
  蒡
502126
502137
  蒢
502127
502138
  蒣
@@ -1,36 +1,36 @@
1
1
  {
2
2
  "tiers": {
3
3
  "core": {
4
- "entries": 16970,
4
+ "entries": 16974,
5
5
  "keys": "core.keys",
6
6
  "readings": "core.entries",
7
7
  "frequencies": "core.freq",
8
- "bytes": 220927,
9
- "compressedBytes": 71714
8
+ "bytes": 221090,
9
+ "compressedBytes": 71787
10
10
  },
11
11
  "standard": {
12
- "entries": 66970,
12
+ "entries": 66974,
13
13
  "keys": "standard.keys",
14
14
  "readings": "standard.entries",
15
15
  "frequencies": "standard.freq",
16
- "bytes": 1418887,
17
- "compressedBytes": 390903
16
+ "bytes": 1418970,
17
+ "compressedBytes": 391282
18
18
  },
19
19
  "full": {
20
- "entries": 461563,
20
+ "entries": 461571,
21
21
  "keys": "full.keys",
22
22
  "readings": "full.entries",
23
23
  "frequencies": "full.freq",
24
- "bytes": 9380232,
25
- "compressedBytes": 2449826
24
+ "bytes": 9380565,
25
+ "compressedBytes": 2450590
26
26
  }
27
27
  },
28
28
  "counts": {
29
29
  "file": "full.counts",
30
30
  "tier": "full",
31
- "keys": 723157,
32
- "bytes": 766852,
33
- "compressedBytes": 250587
31
+ "keys": 723168,
32
+ "bytes": 766863,
33
+ "compressedBytes": 250492
34
34
  },
35
35
  "script": {
36
36
  "file": "script.map",