indickit 0.9.0 → 0.11.0

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.
package/dist/segment.js CHANGED
@@ -1 +1 @@
1
- var V={version:"2026-10-06",unicode:"17.0.0",grapheme_break:[[0,9,"Control"],[10,10,"LF"],[11,12,"Control"],[13,13,"CR"],[14,31,"Control"],[127,159,"Control"],[173,173,"Control"],[768,879,"Extend"],[1155,1161,"Extend"],[1425,1469,"Extend"],[1471,1471,"Extend"],[1473,1474,"Extend"],[1476,1477,"Extend"],[1479,1479,"Extend"],[1536,1541,"Prepend"],[1552,1562,"Extend"],[1564,1564,"Control"],[1611,1631,"Extend"],[1648,1648,"Extend"],[1750,1756,"Extend"],[1757,1757,"Prepend"],[1759,1764,"Extend"],[1767,1768,"Extend"],[1770,1773,"Extend"],[1807,1807,"Prepend"],[1809,1809,"Extend"],[1840,1866,"Extend"],[1958,1968,"Extend"],[2027,2035,"Extend"],[2045,2045,"Extend"],[2070,2073,"Extend"],[2075,2083,"Extend"],[2085,2087,"Extend"],[2089,2093,"Extend"],[2137,2139,"Extend"],[2192,2193,"Prepend"],[2199,2207,"Extend"],[2250,2273,"Extend"],[2274,2274,"Prepend"],[2275,2306,"Extend"],[2307,2307,"SpacingMark"],[2362,2362,"Extend"],[2363,2363,"SpacingMark"],[2364,2364,"Extend"],[2366,2368,"SpacingMark"],[2369,2376,"Extend"],[2377,2380,"SpacingMark"],[2381,2381,"Extend"],[2382,2383,"SpacingMark"],[2385,2391,"Extend"],[2402,2403,"Extend"],[2433,2433,"Extend"],[2434,2435,"SpacingMark"],[2492,2492,"Extend"],[2494,2494,"Extend"],[2495,2496,"SpacingMark"],[2497,2500,"Extend"],[2503,2504,"SpacingMark"],[2507,2508,"SpacingMark"],[2509,2509,"Extend"],[2519,2519,"Extend"],[2530,2531,"Extend"],[2558,2558,"Extend"],[2561,2562,"Extend"],[2563,2563,"SpacingMark"],[2620,2620,"Extend"],[2622,2624,"SpacingMark"],[2625,2626,"Extend"],[2631,2632,"Extend"],[2635,2637,"Extend"],[2641,2641,"Extend"],[2672,2673,"Extend"],[2677,2677,"Extend"],[2689,2690,"Extend"],[2691,2691,"SpacingMark"],[2748,2748,"Extend"],[2750,2752,"SpacingMark"],[2753,2757,"Extend"],[2759,2760,"Extend"],[2761,2761,"SpacingMark"],[2763,2764,"SpacingMark"],[2765,2765,"Extend"],[2786,2787,"Extend"],[2810,2815,"Extend"],[2817,2817,"Extend"],[2818,2819,"SpacingMark"],[2876,2876,"Extend"],[2878,2879,"Extend"],[2880,2880,"SpacingMark"],[2881,2884,"Extend"],[2887,2888,"SpacingMark"],[2891,2892,"SpacingMark"],[2893,2893,"Extend"],[2901,2903,"Extend"],[2914,2915,"Extend"],[2946,2946,"Extend"],[3006,3006,"Extend"],[3007,3007,"SpacingMark"],[3008,3008,"Extend"],[3009,3010,"SpacingMark"],[3014,3016,"SpacingMark"],[3018,3020,"SpacingMark"],[3021,3021,"Extend"],[3031,3031,"Extend"],[3072,3072,"Extend"],[3073,3075,"SpacingMark"],[3076,3076,"Extend"],[3132,3132,"Extend"],[3134,3136,"Extend"],[3137,3140,"SpacingMark"],[3142,3144,"Extend"],[3146,3149,"Extend"],[3157,3158,"Extend"],[3170,3171,"Extend"],[3201,3201,"Extend"],[3202,3203,"SpacingMark"],[3260,3260,"Extend"],[3262,3262,"SpacingMark"],[3263,3264,"Extend"],[3265,3265,"SpacingMark"],[3266,3266,"Extend"],[3267,3268,"SpacingMark"],[3270,3272,"Extend"],[3274,3277,"Extend"],[3285,3286,"Extend"],[3298,3299,"Extend"],[3315,3315,"SpacingMark"],[3328,3329,"Extend"],[3330,3331,"SpacingMark"],[3387,3388,"Extend"],[3390,3390,"Extend"],[3391,3392,"SpacingMark"],[3393,3396,"Extend"],[3398,3400,"SpacingMark"],[3402,3404,"SpacingMark"],[3405,3405,"Extend"],[3406,3406,"Prepend"],[3415,3415,"Extend"],[3426,3427,"Extend"],[3457,3457,"Extend"],[3458,3459,"SpacingMark"],[3530,3530,"Extend"],[3535,3535,"Extend"],[3536,3537,"SpacingMark"],[3538,3540,"Extend"],[3542,3542,"Extend"],[3544,3550,"SpacingMark"],[3551,3551,"Extend"],[3570,3571,"SpacingMark"],[3633,3633,"Extend"],[3635,3635,"SpacingMark"],[3636,3642,"Extend"],[3655,3662,"Extend"],[3761,3761,"Extend"],[3763,3763,"SpacingMark"],[3764,3772,"Extend"],[3784,3790,"Extend"],[3864,3865,"Extend"],[3893,3893,"Extend"],[3895,3895,"Extend"],[3897,3897,"Extend"],[3902,3903,"SpacingMark"],[3953,3966,"Extend"],[3967,3967,"SpacingMark"],[3968,3972,"Extend"],[3974,3975,"Extend"],[3981,3991,"Extend"],[3993,4028,"Extend"],[4038,4038,"Extend"],[4141,4144,"Extend"],[4145,4145,"SpacingMark"],[4146,4151,"Extend"],[4153,4154,"Extend"],[4155,4156,"SpacingMark"],[4157,4158,"Extend"],[4182,4183,"SpacingMark"],[4184,4185,"Extend"],[4190,4192,"Extend"],[4209,4212,"Extend"],[4226,4226,"Extend"],[4228,4228,"SpacingMark"],[4229,4230,"Extend"],[4237,4237,"Extend"],[4253,4253,"Extend"],[4352,4447,"L"],[4448,4519,"V"],[4520,4607,"T"],[4957,4959,"Extend"],[5906,5909,"Extend"],[5938,5940,"Extend"],[5970,5971,"Extend"],[6002,6003,"Extend"],[6068,6069,"Extend"],[6070,6070,"SpacingMark"],[6071,6077,"Extend"],[6078,6085,"SpacingMark"],[6086,6086,"Extend"],[6087,6088,"SpacingMark"],[6089,6099,"Extend"],[6109,6109,"Extend"],[6155,6157,"Extend"],[6158,6158,"Control"],[6159,6159,"Extend"],[6277,6278,"Extend"],[6313,6313,"Extend"],[6432,6434,"Extend"],[6435,6438,"SpacingMark"],[6439,6440,"Extend"],[6441,6443,"SpacingMark"],[6448,6449,"SpacingMark"],[6450,6450,"Extend"],[6451,6456,"SpacingMark"],[6457,6459,"Extend"],[6679,6680,"Extend"],[6681,6682,"SpacingMark"],[6683,6683,"Extend"],[6741,6741,"SpacingMark"],[6742,6742,"Extend"],[6743,6743,"SpacingMark"],[6744,6750,"Extend"],[6752,6752,"Extend"],[6754,6754,"Extend"],[6757,6764,"Extend"],[6765,6770,"SpacingMark"],[6771,6780,"Extend"],[6783,6783,"Extend"],[6832,6877,"Extend"],[6880,6891,"Extend"],[6912,6915,"Extend"],[6916,6916,"SpacingMark"],[6964,6973,"Extend"],[6974,6977,"SpacingMark"],[6978,6980,"Extend"],[7019,7027,"Extend"],[7040,7041,"Extend"],[7042,7042,"SpacingMark"],[7073,7073,"SpacingMark"],[7074,7077,"Extend"],[7078,7079,"SpacingMark"],[7080,7085,"Extend"],[7142,7142,"Extend"],[7143,7143,"SpacingMark"],[7144,7145,"Extend"],[7146,7148,"SpacingMark"],[7149,7149,"Extend"],[7150,7150,"SpacingMark"],[7151,7155,"Extend"],[7204,7211,"SpacingMark"],[7212,7219,"Extend"],[7220,7221,"SpacingMark"],[7222,7223,"Extend"],[7376,7378,"Extend"],[7380,7392,"Extend"],[7393,7393,"SpacingMark"],[7394,7400,"Extend"],[7405,7405,"Extend"],[7412,7412,"Extend"],[7415,7415,"SpacingMark"],[7416,7417,"Extend"],[7616,7679,"Extend"],[8203,8203,"Control"],[8204,8204,"Extend"],[8205,8205,"ZWJ"],[8206,8207,"Control"],[8232,8238,"Control"],[8288,8303,"Control"],[8400,8432,"Extend"],[11503,11505,"Extend"],[11647,11647,"Extend"],[11744,11775,"Extend"],[12330,12335,"Extend"],[12441,12442,"Extend"],[42607,42610,"Extend"],[42612,42621,"Extend"],[42654,42655,"Extend"],[42736,42737,"Extend"],[43010,43010,"Extend"],[43014,43014,"Extend"],[43019,43019,"Extend"],[43043,43044,"SpacingMark"],[43045,43046,"Extend"],[43047,43047,"SpacingMark"],[43052,43052,"Extend"],[43136,43137,"SpacingMark"],[43188,43203,"SpacingMark"],[43204,43205,"Extend"],[43232,43249,"Extend"],[43263,43263,"Extend"],[43302,43309,"Extend"],[43335,43345,"Extend"],[43346,43346,"SpacingMark"],[43347,43347,"Extend"],[43360,43388,"L"],[43392,43394,"Extend"],[43395,43395,"SpacingMark"],[43443,43443,"Extend"],[43444,43445,"SpacingMark"],[43446,43449,"Extend"],[43450,43451,"SpacingMark"],[43452,43453,"Extend"],[43454,43455,"SpacingMark"],[43456,43456,"Extend"],[43493,43493,"Extend"],[43561,43566,"Extend"],[43567,43568,"SpacingMark"],[43569,43570,"Extend"],[43571,43572,"SpacingMark"],[43573,43574,"Extend"],[43587,43587,"Extend"],[43596,43596,"Extend"],[43597,43597,"SpacingMark"],[43644,43644,"Extend"],[43696,43696,"Extend"],[43698,43700,"Extend"],[43703,43704,"Extend"],[43710,43711,"Extend"],[43713,43713,"Extend"],[43755,43755,"SpacingMark"],[43756,43757,"Extend"],[43758,43759,"SpacingMark"],[43765,43765,"SpacingMark"],[43766,43766,"Extend"],[44003,44004,"SpacingMark"],[44005,44005,"Extend"],[44006,44007,"SpacingMark"],[44008,44008,"Extend"],[44009,44010,"SpacingMark"],[44012,44012,"SpacingMark"],[44013,44013,"Extend"],[44032,55203,"LV_LVT"],[55216,55238,"V"],[55243,55291,"T"],[64286,64286,"Extend"],[65024,65039,"Extend"],[65056,65071,"Extend"],[65279,65279,"Control"],[65438,65439,"Extend"],[65520,65531,"Control"],[66045,66045,"Extend"],[66272,66272,"Extend"],[66422,66426,"Extend"],[68097,68099,"Extend"],[68101,68102,"Extend"],[68108,68111,"Extend"],[68152,68154,"Extend"],[68159,68159,"Extend"],[68325,68326,"Extend"],[68900,68903,"Extend"],[68969,68973,"Extend"],[69291,69292,"Extend"],[69370,69375,"Extend"],[69446,69456,"Extend"],[69506,69509,"Extend"],[69632,69632,"SpacingMark"],[69633,69633,"Extend"],[69634,69634,"SpacingMark"],[69688,69702,"Extend"],[69744,69744,"Extend"],[69747,69748,"Extend"],[69759,69761,"Extend"],[69762,69762,"SpacingMark"],[69808,69810,"SpacingMark"],[69811,69814,"Extend"],[69815,69816,"SpacingMark"],[69817,69818,"Extend"],[69821,69821,"Prepend"],[69826,69826,"Extend"],[69837,69837,"Prepend"],[69888,69890,"Extend"],[69927,69931,"Extend"],[69932,69932,"SpacingMark"],[69933,69940,"Extend"],[69957,69958,"SpacingMark"],[70003,70003,"Extend"],[70016,70017,"Extend"],[70018,70018,"SpacingMark"],[70067,70069,"SpacingMark"],[70070,70078,"Extend"],[70079,70079,"SpacingMark"],[70080,70080,"Extend"],[70082,70083,"Prepend"],[70089,70092,"Extend"],[70094,70094,"SpacingMark"],[70095,70095,"Extend"],[70188,70190,"SpacingMark"],[70191,70193,"Extend"],[70194,70195,"SpacingMark"],[70196,70199,"Extend"],[70206,70206,"Extend"],[70209,70209,"Extend"],[70367,70367,"Extend"],[70368,70370,"SpacingMark"],[70371,70378,"Extend"],[70400,70401,"Extend"],[70402,70403,"SpacingMark"],[70459,70460,"Extend"],[70462,70462,"Extend"],[70463,70463,"SpacingMark"],[70464,70464,"Extend"],[70465,70468,"SpacingMark"],[70471,70472,"SpacingMark"],[70475,70476,"SpacingMark"],[70477,70477,"Extend"],[70487,70487,"Extend"],[70498,70499,"SpacingMark"],[70502,70508,"Extend"],[70512,70516,"Extend"],[70584,70584,"Extend"],[70585,70586,"SpacingMark"],[70587,70592,"Extend"],[70594,70594,"Extend"],[70597,70597,"Extend"],[70599,70601,"Extend"],[70602,70602,"SpacingMark"],[70604,70605,"SpacingMark"],[70606,70608,"Extend"],[70609,70609,"Prepend"],[70610,70610,"Extend"],[70625,70626,"Extend"],[70709,70711,"SpacingMark"],[70712,70719,"Extend"],[70720,70721,"SpacingMark"],[70722,70724,"Extend"],[70725,70725,"SpacingMark"],[70726,70726,"Extend"],[70750,70750,"Extend"],[70832,70832,"Extend"],[70833,70834,"SpacingMark"],[70835,70840,"Extend"],[70841,70841,"SpacingMark"],[70842,70842,"Extend"],[70843,70844,"SpacingMark"],[70845,70845,"Extend"],[70846,70846,"SpacingMark"],[70847,70848,"Extend"],[70849,70849,"SpacingMark"],[70850,70851,"Extend"],[71087,71087,"Extend"],[71088,71089,"SpacingMark"],[71090,71093,"Extend"],[71096,71099,"SpacingMark"],[71100,71101,"Extend"],[71102,71102,"SpacingMark"],[71103,71104,"Extend"],[71132,71133,"Extend"],[71216,71218,"SpacingMark"],[71219,71226,"Extend"],[71227,71228,"SpacingMark"],[71229,71229,"Extend"],[71230,71230,"SpacingMark"],[71231,71232,"Extend"],[71339,71339,"Extend"],[71340,71340,"SpacingMark"],[71341,71341,"Extend"],[71342,71343,"SpacingMark"],[71344,71351,"Extend"],[71453,71453,"Extend"],[71454,71454,"SpacingMark"],[71455,71455,"Extend"],[71458,71461,"Extend"],[71462,71462,"SpacingMark"],[71463,71467,"Extend"],[71724,71726,"SpacingMark"],[71727,71735,"Extend"],[71736,71736,"SpacingMark"],[71737,71738,"Extend"],[71984,71984,"Extend"],[71985,71989,"SpacingMark"],[71991,71992,"SpacingMark"],[71995,71998,"Extend"],[71999,71999,"Prepend"],[72000,72000,"SpacingMark"],[72001,72001,"Prepend"],[72002,72002,"SpacingMark"],[72003,72003,"Extend"],[72145,72147,"SpacingMark"],[72148,72151,"Extend"],[72154,72155,"Extend"],[72156,72159,"SpacingMark"],[72160,72160,"Extend"],[72164,72164,"SpacingMark"],[72193,72202,"Extend"],[72243,72248,"Extend"],[72249,72249,"SpacingMark"],[72251,72254,"Extend"],[72263,72263,"Extend"],[72273,72278,"Extend"],[72279,72280,"SpacingMark"],[72281,72283,"Extend"],[72324,72329,"Prepend"],[72330,72342,"Extend"],[72343,72343,"SpacingMark"],[72344,72345,"Extend"],[72544,72544,"Extend"],[72545,72545,"SpacingMark"],[72546,72548,"Extend"],[72549,72549,"SpacingMark"],[72550,72550,"Extend"],[72551,72551,"SpacingMark"],[72751,72751,"SpacingMark"],[72752,72758,"Extend"],[72760,72765,"Extend"],[72766,72766,"SpacingMark"],[72767,72767,"Extend"],[72850,72871,"Extend"],[72873,72873,"SpacingMark"],[72874,72880,"Extend"],[72881,72881,"SpacingMark"],[72882,72883,"Extend"],[72884,72884,"SpacingMark"],[72885,72886,"Extend"],[73009,73014,"Extend"],[73018,73018,"Extend"],[73020,73021,"Extend"],[73023,73029,"Extend"],[73030,73030,"Prepend"],[73031,73031,"Extend"],[73098,73102,"SpacingMark"],[73104,73105,"Extend"],[73107,73108,"SpacingMark"],[73109,73109,"Extend"],[73110,73110,"SpacingMark"],[73111,73111,"Extend"],[73459,73460,"Extend"],[73461,73462,"SpacingMark"],[73472,73473,"Extend"],[73474,73474,"Prepend"],[73475,73475,"SpacingMark"],[73524,73525,"SpacingMark"],[73526,73530,"Extend"],[73534,73535,"SpacingMark"],[73536,73538,"Extend"],[73562,73562,"Extend"],[78896,78911,"Control"],[78912,78912,"Extend"],[78919,78933,"Extend"],[90398,90409,"Extend"],[90410,90412,"SpacingMark"],[90413,90415,"Extend"],[92912,92916,"Extend"],[92976,92982,"Extend"],[93539,93539,"V"],[93543,93546,"V"],[94031,94031,"Extend"],[94033,94087,"SpacingMark"],[94095,94098,"Extend"],[94180,94180,"Extend"],[94192,94193,"Extend"],[113821,113822,"Extend"],[113824,113827,"Control"],[118528,118573,"Extend"],[118576,118598,"Extend"],[119141,119145,"Extend"],[119149,119154,"Extend"],[119155,119162,"Control"],[119163,119170,"Extend"],[119173,119179,"Extend"],[119210,119213,"Extend"],[119362,119364,"Extend"],[121344,121398,"Extend"],[121403,121452,"Extend"],[121461,121461,"Extend"],[121476,121476,"Extend"],[121499,121503,"Extend"],[121505,121519,"Extend"],[122880,122886,"Extend"],[122888,122904,"Extend"],[122907,122913,"Extend"],[122915,122916,"Extend"],[122918,122922,"Extend"],[123023,123023,"Extend"],[123184,123190,"Extend"],[123566,123566,"Extend"],[123628,123631,"Extend"],[124140,124143,"Extend"],[124398,124399,"Extend"],[124643,124643,"Extend"],[124646,124646,"Extend"],[124654,124655,"Extend"],[124661,124661,"Extend"],[125136,125142,"Extend"],[125252,125258,"Extend"],[127462,127487,"Regional_Indicator"],[127995,127999,"Extend"],[917504,917535,"Control"],[917536,917631,"Extend"],[917632,917759,"Control"],[917760,917999,"Extend"],[918000,921599,"Control"]],extended_pictographic:[[169,169],[174,174],[8252,8252],[8265,8265],[8482,8482],[8505,8505],[8596,8601],[8617,8618],[8986,8987],[9000,9000],[9167,9167],[9193,9203],[9208,9210],[9410,9410],[9642,9643],[9654,9654],[9664,9664],[9723,9726],[9728,9732],[9742,9742],[9745,9745],[9748,9749],[9752,9752],[9757,9757],[9760,9760],[9762,9763],[9766,9766],[9770,9770],[9774,9775],[9784,9786],[9792,9792],[9794,9794],[9800,9811],[9823,9824],[9827,9827],[9829,9830],[9832,9832],[9851,9851],[9854,9855],[9874,9879],[9881,9881],[9883,9884],[9888,9889],[9895,9895],[9898,9899],[9904,9905],[9917,9918],[9924,9925],[9928,9928],[9934,9935],[9937,9937],[9939,9940],[9961,9962],[9968,9973],[9975,9978],[9981,9981],[9986,9986],[9989,9989],[9992,9997],[9999,9999],[10002,10002],[10004,10004],[10006,10006],[10013,10013],[10017,10017],[10024,10024],[10035,10036],[10052,10052],[10055,10055],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10083,10084],[10133,10135],[10145,10145],[10160,10160],[10175,10175],[10548,10549],[11013,11015],[11035,11036],[11088,11088],[11093,11093],[12336,12336],[12349,12349],[12951,12951],[12953,12953],[126980,126980],[127020,127023],[127124,127135],[127151,127152],[127168,127168],[127183,127184],[127222,127231],[127344,127345],[127358,127359],[127374,127374],[127377,127386],[127406,127461],[127489,127503],[127514,127514],[127535,127535],[127538,127546],[127548,127551],[127561,127583],[127590,127777],[127780,127891],[127894,127895],[127897,127899],[127902,127984],[127987,127989],[127991,127994],[128000,128253],[128255,128317],[128329,128334],[128336,128359],[128367,128368],[128371,128378],[128391,128391],[128394,128397],[128400,128400],[128405,128406],[128420,128421],[128424,128424],[128433,128434],[128444,128444],[128450,128452],[128465,128467],[128476,128478],[128481,128481],[128483,128483],[128488,128488],[128495,128495],[128499,128499],[128506,128591],[128640,128709],[128715,128722],[128725,128741],[128745,128745],[128747,128752],[128755,128767],[128986,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129212,129215],[129218,129231],[129241,129279],[129292,129338],[129340,129349],[129351,129535],[129624,129631],[129646,129791],[130048,131069]],incb:[[768,879,"Extend"],[1155,1161,"Extend"],[1425,1469,"Extend"],[1471,1471,"Extend"],[1473,1474,"Extend"],[1476,1477,"Extend"],[1479,1479,"Extend"],[1552,1562,"Extend"],[1611,1631,"Extend"],[1648,1648,"Extend"],[1750,1756,"Extend"],[1759,1764,"Extend"],[1767,1768,"Extend"],[1770,1773,"Extend"],[1809,1809,"Extend"],[1840,1866,"Extend"],[1958,1968,"Extend"],[2027,2035,"Extend"],[2045,2045,"Extend"],[2070,2073,"Extend"],[2075,2083,"Extend"],[2085,2087,"Extend"],[2089,2093,"Extend"],[2137,2139,"Extend"],[2199,2207,"Extend"],[2250,2273,"Extend"],[2275,2306,"Extend"],[2325,2361,"Consonant"],[2362,2362,"Extend"],[2364,2364,"Extend"],[2369,2376,"Extend"],[2381,2381,"Linker"],[2385,2391,"Extend"],[2392,2399,"Consonant"],[2402,2403,"Extend"],[2424,2431,"Consonant"],[2433,2433,"Extend"],[2453,2472,"Consonant"],[2474,2480,"Consonant"],[2482,2482,"Consonant"],[2486,2489,"Consonant"],[2492,2492,"Extend"],[2494,2494,"Extend"],[2497,2500,"Extend"],[2509,2509,"Linker"],[2519,2519,"Extend"],[2524,2525,"Consonant"],[2527,2527,"Consonant"],[2530,2531,"Extend"],[2544,2545,"Consonant"],[2558,2558,"Extend"],[2561,2562,"Extend"],[2620,2620,"Extend"],[2625,2626,"Extend"],[2631,2632,"Extend"],[2635,2637,"Extend"],[2641,2641,"Extend"],[2672,2673,"Extend"],[2677,2677,"Extend"],[2689,2690,"Extend"],[2709,2728,"Consonant"],[2730,2736,"Consonant"],[2738,2739,"Consonant"],[2741,2745,"Consonant"],[2748,2748,"Extend"],[2753,2757,"Extend"],[2759,2760,"Extend"],[2765,2765,"Linker"],[2786,2787,"Extend"],[2809,2809,"Consonant"],[2810,2815,"Extend"],[2817,2817,"Extend"],[2837,2856,"Consonant"],[2858,2864,"Consonant"],[2866,2867,"Consonant"],[2869,2873,"Consonant"],[2876,2876,"Extend"],[2878,2879,"Extend"],[2881,2884,"Extend"],[2893,2893,"Linker"],[2901,2903,"Extend"],[2908,2909,"Consonant"],[2911,2911,"Consonant"],[2914,2915,"Extend"],[2929,2929,"Consonant"],[2946,2946,"Extend"],[3006,3006,"Extend"],[3008,3008,"Extend"],[3021,3021,"Extend"],[3031,3031,"Extend"],[3072,3072,"Extend"],[3076,3076,"Extend"],[3093,3112,"Consonant"],[3114,3129,"Consonant"],[3132,3132,"Extend"],[3134,3136,"Extend"],[3142,3144,"Extend"],[3146,3148,"Extend"],[3149,3149,"Linker"],[3157,3158,"Extend"],[3160,3162,"Consonant"],[3170,3171,"Extend"],[3201,3201,"Extend"],[3260,3260,"Extend"],[3263,3264,"Extend"],[3266,3266,"Extend"],[3270,3272,"Extend"],[3274,3277,"Extend"],[3285,3286,"Extend"],[3298,3299,"Extend"],[3328,3329,"Extend"],[3349,3386,"Consonant"],[3387,3388,"Extend"],[3390,3390,"Extend"],[3393,3396,"Extend"],[3405,3405,"Linker"],[3415,3415,"Extend"],[3426,3427,"Extend"],[3457,3457,"Extend"],[3530,3530,"Extend"],[3535,3535,"Extend"],[3538,3540,"Extend"],[3542,3542,"Extend"],[3551,3551,"Extend"],[3633,3633,"Extend"],[3636,3642,"Extend"],[3655,3662,"Extend"],[3761,3761,"Extend"],[3764,3772,"Extend"],[3784,3790,"Extend"],[3864,3865,"Extend"],[3893,3893,"Extend"],[3895,3895,"Extend"],[3897,3897,"Extend"],[3953,3966,"Extend"],[3968,3972,"Extend"],[3974,3975,"Extend"],[3981,3991,"Extend"],[3993,4028,"Extend"],[4038,4038,"Extend"],[4096,4138,"Consonant"],[4141,4144,"Extend"],[4146,4151,"Extend"],[4153,4153,"Linker"],[4154,4154,"Extend"],[4157,4158,"Extend"],[4159,4159,"Consonant"],[4176,4181,"Consonant"],[4184,4185,"Extend"],[4186,4189,"Consonant"],[4190,4192,"Extend"],[4193,4193,"Consonant"],[4197,4198,"Consonant"],[4206,4208,"Consonant"],[4209,4212,"Extend"],[4213,4225,"Consonant"],[4226,4226,"Extend"],[4229,4230,"Extend"],[4237,4237,"Extend"],[4238,4238,"Consonant"],[4253,4253,"Extend"],[4957,4959,"Extend"],[5906,5909,"Extend"],[5938,5940,"Extend"],[5970,5971,"Extend"],[6002,6003,"Extend"],[6016,6067,"Consonant"],[6068,6069,"Extend"],[6071,6077,"Extend"],[6086,6086,"Extend"],[6089,6097,"Extend"],[6098,6098,"Linker"],[6099,6099,"Extend"],[6109,6109,"Extend"],[6155,6157,"Extend"],[6159,6159,"Extend"],[6277,6278,"Extend"],[6313,6313,"Extend"],[6432,6434,"Extend"],[6439,6440,"Extend"],[6450,6450,"Extend"],[6457,6459,"Extend"],[6679,6680,"Extend"],[6683,6683,"Extend"],[6688,6740,"Consonant"],[6742,6742,"Extend"],[6744,6750,"Extend"],[6752,6752,"Linker"],[6754,6754,"Extend"],[6757,6764,"Extend"],[6771,6780,"Extend"],[6783,6783,"Extend"],[6832,6877,"Extend"],[6880,6891,"Extend"],[6912,6915,"Extend"],[6923,6924,"Consonant"],[6931,6963,"Consonant"],[6964,6973,"Extend"],[6978,6979,"Extend"],[6980,6980,"Linker"],[6981,6988,"Consonant"],[7019,7027,"Extend"],[7040,7041,"Extend"],[7043,7072,"Consonant"],[7074,7077,"Extend"],[7080,7082,"Extend"],[7083,7083,"Linker"],[7084,7085,"Extend"],[7086,7087,"Consonant"],[7099,7101,"Consonant"],[7142,7142,"Extend"],[7144,7145,"Extend"],[7149,7149,"Extend"],[7151,7155,"Extend"],[7212,7219,"Extend"],[7222,7223,"Extend"],[7376,7378,"Extend"],[7380,7392,"Extend"],[7394,7400,"Extend"],[7405,7405,"Extend"],[7412,7412,"Extend"],[7416,7417,"Extend"],[7616,7679,"Extend"],[8205,8205,"Extend"],[8400,8432,"Extend"],[11503,11505,"Extend"],[11647,11647,"Extend"],[11744,11775,"Extend"],[12330,12335,"Extend"],[12441,12442,"Extend"],[42607,42610,"Extend"],[42612,42621,"Extend"],[42654,42655,"Extend"],[42736,42737,"Extend"],[43010,43010,"Extend"],[43014,43014,"Extend"],[43019,43019,"Extend"],[43045,43046,"Extend"],[43052,43052,"Extend"],[43204,43205,"Extend"],[43232,43249,"Extend"],[43263,43263,"Extend"],[43302,43309,"Extend"],[43335,43345,"Extend"],[43347,43347,"Extend"],[43392,43394,"Extend"],[43401,43403,"Consonant"],[43407,43442,"Consonant"],[43443,43443,"Extend"],[43446,43449,"Extend"],[43452,43453,"Extend"],[43456,43456,"Linker"],[43488,43492,"Consonant"],[43493,43493,"Extend"],[43495,43503,"Consonant"],[43514,43518,"Consonant"],[43561,43566,"Extend"],[43569,43570,"Extend"],[43573,43574,"Extend"],[43587,43587,"Extend"],[43596,43596,"Extend"],[43616,43631,"Consonant"],[43633,43635,"Consonant"],[43642,43642,"Consonant"],[43644,43644,"Extend"],[43646,43647,"Consonant"],[43696,43696,"Extend"],[43698,43700,"Extend"],[43703,43704,"Extend"],[43710,43711,"Extend"],[43713,43713,"Extend"],[43744,43754,"Consonant"],[43756,43757,"Extend"],[43766,43766,"Linker"],[43968,43994,"Consonant"],[44005,44005,"Extend"],[44008,44008,"Extend"],[44013,44013,"Extend"],[64286,64286,"Extend"],[65024,65039,"Extend"],[65056,65071,"Extend"],[65438,65439,"Extend"],[66045,66045,"Extend"],[66272,66272,"Extend"],[66422,66426,"Extend"],[68096,68096,"Consonant"],[68097,68099,"Extend"],[68101,68102,"Extend"],[68108,68111,"Extend"],[68112,68115,"Consonant"],[68117,68119,"Consonant"],[68121,68149,"Consonant"],[68152,68154,"Extend"],[68159,68159,"Linker"],[68325,68326,"Extend"],[68900,68903,"Extend"],[68969,68973,"Extend"],[69291,69292,"Extend"],[69370,69375,"Extend"],[69446,69456,"Extend"],[69506,69509,"Extend"],[69633,69633,"Extend"],[69688,69702,"Extend"],[69744,69744,"Extend"],[69747,69748,"Extend"],[69759,69761,"Extend"],[69811,69814,"Extend"],[69817,69818,"Extend"],[69826,69826,"Extend"],[69888,69890,"Extend"],[69891,69926,"Consonant"],[69927,69931,"Extend"],[69933,69938,"Extend"],[69939,69939,"Linker"],[69940,69940,"Extend"],[69956,69956,"Consonant"],[69959,69959,"Consonant"],[70003,70003,"Extend"],[70016,70017,"Extend"],[70070,70078,"Extend"],[70080,70080,"Extend"],[70089,70092,"Extend"],[70095,70095,"Extend"],[70191,70193,"Extend"],[70196,70199,"Extend"],[70206,70206,"Extend"],[70209,70209,"Extend"],[70367,70367,"Extend"],[70371,70378,"Extend"],[70400,70401,"Extend"],[70459,70460,"Extend"],[70462,70462,"Extend"],[70464,70464,"Extend"],[70477,70477,"Extend"],[70487,70487,"Extend"],[70502,70508,"Extend"],[70512,70516,"Extend"],[70528,70537,"Consonant"],[70539,70539,"Consonant"],[70542,70542,"Consonant"],[70544,70581,"Consonant"],[70584,70584,"Extend"],[70587,70592,"Extend"],[70594,70594,"Extend"],[70597,70597,"Extend"],[70599,70601,"Extend"],[70606,70607,"Extend"],[70608,70608,"Linker"],[70610,70610,"Extend"],[70625,70626,"Extend"],[70712,70719,"Extend"],[70722,70724,"Extend"],[70726,70726,"Extend"],[70750,70750,"Extend"],[70832,70832,"Extend"],[70835,70840,"Extend"],[70842,70842,"Extend"],[70845,70845,"Extend"],[70847,70848,"Extend"],[70850,70851,"Extend"],[71087,71087,"Extend"],[71090,71093,"Extend"],[71100,71101,"Extend"],[71103,71104,"Extend"],[71132,71133,"Extend"],[71219,71226,"Extend"],[71229,71229,"Extend"],[71231,71232,"Extend"],[71339,71339,"Extend"],[71341,71341,"Extend"],[71344,71351,"Extend"],[71453,71453,"Extend"],[71455,71455,"Extend"],[71458,71461,"Extend"],[71463,71467,"Extend"],[71727,71735,"Extend"],[71737,71738,"Extend"],[71936,71942,"Consonant"],[71945,71945,"Consonant"],[71948,71955,"Consonant"],[71957,71958,"Consonant"],[71960,71983,"Consonant"],[71984,71984,"Extend"],[71995,71997,"Extend"],[71998,71998,"Linker"],[72003,72003,"Extend"],[72148,72151,"Extend"],[72154,72155,"Extend"],[72160,72160,"Extend"],[72192,72192,"Consonant"],[72193,72202,"Extend"],[72203,72242,"Consonant"],[72243,72248,"Extend"],[72251,72254,"Extend"],[72263,72263,"Linker"],[72272,72272,"Consonant"],[72273,72278,"Extend"],[72281,72283,"Extend"],[72284,72323,"Consonant"],[72330,72342,"Extend"],[72344,72344,"Extend"],[72345,72345,"Linker"],[72544,72544,"Extend"],[72546,72548,"Extend"],[72550,72550,"Extend"],[72752,72758,"Extend"],[72760,72765,"Extend"],[72767,72767,"Extend"],[72850,72871,"Extend"],[72874,72880,"Extend"],[72882,72883,"Extend"],[72885,72886,"Extend"],[73009,73014,"Extend"],[73018,73018,"Extend"],[73020,73021,"Extend"],[73023,73029,"Extend"],[73031,73031,"Extend"],[73104,73105,"Extend"],[73109,73109,"Extend"],[73111,73111,"Extend"],[73459,73460,"Extend"],[73472,73473,"Extend"],[73476,73488,"Consonant"],[73490,73523,"Consonant"],[73526,73530,"Extend"],[73536,73537,"Extend"],[73538,73538,"Linker"],[73562,73562,"Extend"],[78912,78912,"Extend"],[78919,78933,"Extend"],[90398,90409,"Extend"],[90413,90415,"Extend"],[92912,92916,"Extend"],[92976,92982,"Extend"],[94031,94031,"Extend"],[94095,94098,"Extend"],[94180,94180,"Extend"],[94192,94193,"Extend"],[113821,113822,"Extend"],[118528,118573,"Extend"],[118576,118598,"Extend"],[119141,119145,"Extend"],[119149,119154,"Extend"],[119163,119170,"Extend"],[119173,119179,"Extend"],[119210,119213,"Extend"],[119362,119364,"Extend"],[121344,121398,"Extend"],[121403,121452,"Extend"],[121461,121461,"Extend"],[121476,121476,"Extend"],[121499,121503,"Extend"],[121505,121519,"Extend"],[122880,122886,"Extend"],[122888,122904,"Extend"],[122907,122913,"Extend"],[122915,122916,"Extend"],[122918,122922,"Extend"],[123023,123023,"Extend"],[123184,123190,"Extend"],[123566,123566,"Extend"],[123628,123631,"Extend"],[124140,124143,"Extend"],[124398,124399,"Extend"],[124643,124643,"Extend"],[124646,124646,"Extend"],[124654,124655,"Extend"],[124661,124661,"Extend"],[125136,125142,"Extend"],[125252,125258,"Extend"],[127995,127999,"Extend"],[917536,917631,"Extend"],[917760,917999,"Extend"]],joins:[{virama:"್",consonants:"ಕಖಗಘಙಚಛಜಝಞಟಠಡಢಣತಥದಧನಪಫಬಭಮಯರಱಲಳವಶಷಸಹೝೞ",sign:"",after:""},{virama:"੍",consonants:"ਰਹ",sign:"",after:""},{virama:"্",consonants:"য",sign:"া",after:""},{virama:"்",consonants:"ர",sign:"ீ",after:"ஸ"}],classes:{"್":{letters:"ಀಅಆಇಈಉಊಋಌಎಏಐಒಓಔಕಖಗಘಙಚಛಜಝಞಟಠಡಢಣತಥದಧನಪಫಬಭಮಯರಱಲಳವಶಷಸಹಽೝೞೠೡೱೲ",nuktas:"಼",signs:"ಾಿೀುೂೃೄೆೇೈೊೋೌೢೣ"},"੍":{letters:"ਅਆਇਈਉਊਏਐਓਔਕਖਗਘਙਚਛਜਝਞਟਠਡਢਣਤਥਦਧਨਪਫਬਭਮਯਰਲਲ਼ਵਸ਼ਸਹਖ਼ਗ਼ਜ਼ੜਫ਼ੲੳੴ",nuktas:"਼",signs:"ਾਿੀੁੂੇੈੋੌ"},"্":{letters:"ঀঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহঽৎড়ঢ়য়ৠৡৰৱৼ",nuktas:"়",signs:"ািীুূৃৄেৈোৌৢৣ"},"்":{letters:"ஃஅஆஇஈஉஊஎஏஐஒஓஔகஙசஜஞடணதநனபமயரறலளழவஶஷஸஹௐ",nuktas:"",signs:"ாிீுூெேைொோௌ"}}};var D={CR:1,LF:2,Control:3,Extend:4,ZWJ:5,Regional_Indicator:6,Prepend:7,SpacingMark:8,L:9,V:10,T:11,LV:12,LVT:13,LV_LVT:14};var G={Linker:1,Consonant:2,Extend:3};class _{first;last;value;constructor(E,o){this.first=new Uint32Array(E.map((g)=>g[0])),this.last=new Uint32Array(E.map((g)=>g[1])),this.value=new Uint8Array(E.map(o))}get(E){let o=0,g=this.first.length-1;while(o<=g){let a=o+g>>1;if(E<this.first[a])g=a-1;else if(E>this.last[a])o=a+1;else return this.value[a]}return 0}}function H(E){let o=new _(E.grapheme_break,(n)=>D[n[2]]),g=new _(E.extended_pictographic,()=>1),a=new _(E.incb,(n)=>G[n[2]]),p=new Map;for(let n of E.joins){let e=n.virama.codePointAt(0);p.set(e,[...p.get(e)??[],n])}let S=new Map(Object.entries(E.classes).map(([n,e])=>[n.codePointAt(0),e])),T=8205;function l(n){let e=o.get(n);return e===14?(n-44032)%28===0?12:13:e}function F(n){let e=[];if(n.length===0)return e;let d=l(n[0]),C=d===6?1:0,r=g.get(n[0])===1,i=!1,M=a.get(n[0])===2?1:0;for(let k=1;k<n.length;k++){let c=n[k],t=l(c),L=g.get(c)===1,P=a.get(c),x;if(d===1&&t===2)x=!1;else if(d===3||d===1||d===2)x=!0;else if(t===3||t===1||t===2)x=!0;else if(d===9&&(t===9||t===10||t===12||t===13))x=!1;else if((d===12||d===10)&&(t===10||t===11))x=!1;else if((d===13||d===11)&&t===11)x=!1;else if(t===4||t===5)x=!1;else if(t===8)x=!1;else if(d===7)x=!1;else if(M===2&&P===2)x=!1;else if(i&&L)x=!1;else if(d===6&&t===6)x=C%2===0;else x=!0;if(x)e.push(k);if(C=t===6?x?1:C+1:0,i=t===5&&r,r=L||t===4&&r,P===2)M=1;else if(P===1&&M>0)M=2;else if(P!==3)M=0;d=t}return e}function q(n,e){let d=n[e-1],C=p.get(d);if(!C||e<2)return!1;let r=S.get(d),i=(t,L)=>t.includes(String.fromCodePoint(L)),M=e-2;while(M>0&&i(r.nuktas,n[M]))M--;if(!i(r.letters,n[M]))return!1;let k=e+1;while(k<n.length&&i(r.nuktas,n[k]))k++;if(n[k]===d&&n[k+1]===T)return!1;let c=k<n.length&&i(r.signs,n[k])?n[k]:-1;return C.some((t)=>i(t.consonants,n[e])&&(!t.sign||t.sign.codePointAt(0)===c)&&(!t.after||i(t.after,n[M])))}return function(e){return F(e).filter((d)=>!q(e,d))}}var s=H(V);function I(E){let o=Array.from(E),g=o.map((S)=>S.codePointAt(0)),a=[0,...s(g),o.length],p=[];for(let S=1;S<a.length;S++)if(a[S]>a[S-1])p.push(o.slice(a[S-1],a[S]).join(""));return p}function X(E){return I(E).length}function Y(E){return s(Array.from(E,(o)=>o.codePointAt(0)))}var Z=V.version,$=V.unicode;export{I as segment,X as count,Y as codePointBounds,$ as UNICODE_VERSION,Z as RULES_VERSION};
1
+ var s={version:"2026-10-11",unicode:"17.0.0",grapheme_break:[[0,9,"Control"],[10,10,"LF"],[11,12,"Control"],[13,13,"CR"],[14,31,"Control"],[127,159,"Control"],[173,173,"Control"],[768,879,"Extend"],[1155,1161,"Extend"],[1425,1469,"Extend"],[1471,1471,"Extend"],[1473,1474,"Extend"],[1476,1477,"Extend"],[1479,1479,"Extend"],[1536,1541,"Prepend"],[1552,1562,"Extend"],[1564,1564,"Control"],[1611,1631,"Extend"],[1648,1648,"Extend"],[1750,1756,"Extend"],[1757,1757,"Prepend"],[1759,1764,"Extend"],[1767,1768,"Extend"],[1770,1773,"Extend"],[1807,1807,"Prepend"],[1809,1809,"Extend"],[1840,1866,"Extend"],[1958,1968,"Extend"],[2027,2035,"Extend"],[2045,2045,"Extend"],[2070,2073,"Extend"],[2075,2083,"Extend"],[2085,2087,"Extend"],[2089,2093,"Extend"],[2137,2139,"Extend"],[2192,2193,"Prepend"],[2199,2207,"Extend"],[2250,2273,"Extend"],[2274,2274,"Prepend"],[2275,2306,"Extend"],[2307,2307,"SpacingMark"],[2362,2362,"Extend"],[2363,2363,"SpacingMark"],[2364,2364,"Extend"],[2366,2368,"SpacingMark"],[2369,2376,"Extend"],[2377,2380,"SpacingMark"],[2381,2381,"Extend"],[2382,2383,"SpacingMark"],[2385,2391,"Extend"],[2402,2403,"Extend"],[2433,2433,"Extend"],[2434,2435,"SpacingMark"],[2492,2492,"Extend"],[2494,2494,"Extend"],[2495,2496,"SpacingMark"],[2497,2500,"Extend"],[2503,2504,"SpacingMark"],[2507,2508,"SpacingMark"],[2509,2509,"Extend"],[2519,2519,"Extend"],[2530,2531,"Extend"],[2558,2558,"Extend"],[2561,2562,"Extend"],[2563,2563,"SpacingMark"],[2620,2620,"Extend"],[2622,2624,"SpacingMark"],[2625,2626,"Extend"],[2631,2632,"Extend"],[2635,2637,"Extend"],[2641,2641,"Extend"],[2672,2673,"Extend"],[2677,2677,"Extend"],[2689,2690,"Extend"],[2691,2691,"SpacingMark"],[2748,2748,"Extend"],[2750,2752,"SpacingMark"],[2753,2757,"Extend"],[2759,2760,"Extend"],[2761,2761,"SpacingMark"],[2763,2764,"SpacingMark"],[2765,2765,"Extend"],[2786,2787,"Extend"],[2810,2815,"Extend"],[2817,2817,"Extend"],[2818,2819,"SpacingMark"],[2876,2876,"Extend"],[2878,2879,"Extend"],[2880,2880,"SpacingMark"],[2881,2884,"Extend"],[2887,2888,"SpacingMark"],[2891,2892,"SpacingMark"],[2893,2893,"Extend"],[2901,2903,"Extend"],[2914,2915,"Extend"],[2946,2946,"Extend"],[3006,3006,"Extend"],[3007,3007,"SpacingMark"],[3008,3008,"Extend"],[3009,3010,"SpacingMark"],[3014,3016,"SpacingMark"],[3018,3020,"SpacingMark"],[3021,3021,"Extend"],[3031,3031,"Extend"],[3072,3072,"Extend"],[3073,3075,"SpacingMark"],[3076,3076,"Extend"],[3132,3132,"Extend"],[3134,3136,"Extend"],[3137,3140,"SpacingMark"],[3142,3144,"Extend"],[3146,3149,"Extend"],[3157,3158,"Extend"],[3170,3171,"Extend"],[3201,3201,"Extend"],[3202,3203,"SpacingMark"],[3260,3260,"Extend"],[3262,3262,"SpacingMark"],[3263,3264,"Extend"],[3265,3265,"SpacingMark"],[3266,3266,"Extend"],[3267,3268,"SpacingMark"],[3270,3272,"Extend"],[3274,3277,"Extend"],[3285,3286,"Extend"],[3298,3299,"Extend"],[3315,3315,"SpacingMark"],[3328,3329,"Extend"],[3330,3331,"SpacingMark"],[3387,3388,"Extend"],[3390,3390,"Extend"],[3391,3392,"SpacingMark"],[3393,3396,"Extend"],[3398,3400,"SpacingMark"],[3402,3404,"SpacingMark"],[3405,3405,"Extend"],[3406,3406,"Prepend"],[3415,3415,"Extend"],[3426,3427,"Extend"],[3457,3457,"Extend"],[3458,3459,"SpacingMark"],[3530,3530,"Extend"],[3535,3535,"Extend"],[3536,3537,"SpacingMark"],[3538,3540,"Extend"],[3542,3542,"Extend"],[3544,3550,"SpacingMark"],[3551,3551,"Extend"],[3570,3571,"SpacingMark"],[3633,3633,"Extend"],[3635,3635,"SpacingMark"],[3636,3642,"Extend"],[3655,3662,"Extend"],[3761,3761,"Extend"],[3763,3763,"SpacingMark"],[3764,3772,"Extend"],[3784,3790,"Extend"],[3864,3865,"Extend"],[3893,3893,"Extend"],[3895,3895,"Extend"],[3897,3897,"Extend"],[3902,3903,"SpacingMark"],[3953,3966,"Extend"],[3967,3967,"SpacingMark"],[3968,3972,"Extend"],[3974,3975,"Extend"],[3981,3991,"Extend"],[3993,4028,"Extend"],[4038,4038,"Extend"],[4141,4144,"Extend"],[4145,4145,"SpacingMark"],[4146,4151,"Extend"],[4153,4154,"Extend"],[4155,4156,"SpacingMark"],[4157,4158,"Extend"],[4182,4183,"SpacingMark"],[4184,4185,"Extend"],[4190,4192,"Extend"],[4209,4212,"Extend"],[4226,4226,"Extend"],[4228,4228,"SpacingMark"],[4229,4230,"Extend"],[4237,4237,"Extend"],[4253,4253,"Extend"],[4352,4447,"L"],[4448,4519,"V"],[4520,4607,"T"],[4957,4959,"Extend"],[5906,5909,"Extend"],[5938,5940,"Extend"],[5970,5971,"Extend"],[6002,6003,"Extend"],[6068,6069,"Extend"],[6070,6070,"SpacingMark"],[6071,6077,"Extend"],[6078,6085,"SpacingMark"],[6086,6086,"Extend"],[6087,6088,"SpacingMark"],[6089,6099,"Extend"],[6109,6109,"Extend"],[6155,6157,"Extend"],[6158,6158,"Control"],[6159,6159,"Extend"],[6277,6278,"Extend"],[6313,6313,"Extend"],[6432,6434,"Extend"],[6435,6438,"SpacingMark"],[6439,6440,"Extend"],[6441,6443,"SpacingMark"],[6448,6449,"SpacingMark"],[6450,6450,"Extend"],[6451,6456,"SpacingMark"],[6457,6459,"Extend"],[6679,6680,"Extend"],[6681,6682,"SpacingMark"],[6683,6683,"Extend"],[6741,6741,"SpacingMark"],[6742,6742,"Extend"],[6743,6743,"SpacingMark"],[6744,6750,"Extend"],[6752,6752,"Extend"],[6754,6754,"Extend"],[6757,6764,"Extend"],[6765,6770,"SpacingMark"],[6771,6780,"Extend"],[6783,6783,"Extend"],[6832,6877,"Extend"],[6880,6891,"Extend"],[6912,6915,"Extend"],[6916,6916,"SpacingMark"],[6964,6973,"Extend"],[6974,6977,"SpacingMark"],[6978,6980,"Extend"],[7019,7027,"Extend"],[7040,7041,"Extend"],[7042,7042,"SpacingMark"],[7073,7073,"SpacingMark"],[7074,7077,"Extend"],[7078,7079,"SpacingMark"],[7080,7085,"Extend"],[7142,7142,"Extend"],[7143,7143,"SpacingMark"],[7144,7145,"Extend"],[7146,7148,"SpacingMark"],[7149,7149,"Extend"],[7150,7150,"SpacingMark"],[7151,7155,"Extend"],[7204,7211,"SpacingMark"],[7212,7219,"Extend"],[7220,7221,"SpacingMark"],[7222,7223,"Extend"],[7376,7378,"Extend"],[7380,7392,"Extend"],[7393,7393,"SpacingMark"],[7394,7400,"Extend"],[7405,7405,"Extend"],[7412,7412,"Extend"],[7415,7415,"SpacingMark"],[7416,7417,"Extend"],[7616,7679,"Extend"],[8203,8203,"Control"],[8204,8204,"Extend"],[8205,8205,"ZWJ"],[8206,8207,"Control"],[8232,8238,"Control"],[8288,8303,"Control"],[8400,8432,"Extend"],[11503,11505,"Extend"],[11647,11647,"Extend"],[11744,11775,"Extend"],[12330,12335,"Extend"],[12441,12442,"Extend"],[42607,42610,"Extend"],[42612,42621,"Extend"],[42654,42655,"Extend"],[42736,42737,"Extend"],[43010,43010,"Extend"],[43014,43014,"Extend"],[43019,43019,"Extend"],[43043,43044,"SpacingMark"],[43045,43046,"Extend"],[43047,43047,"SpacingMark"],[43052,43052,"Extend"],[43136,43137,"SpacingMark"],[43188,43203,"SpacingMark"],[43204,43205,"Extend"],[43232,43249,"Extend"],[43263,43263,"Extend"],[43302,43309,"Extend"],[43335,43345,"Extend"],[43346,43346,"SpacingMark"],[43347,43347,"Extend"],[43360,43388,"L"],[43392,43394,"Extend"],[43395,43395,"SpacingMark"],[43443,43443,"Extend"],[43444,43445,"SpacingMark"],[43446,43449,"Extend"],[43450,43451,"SpacingMark"],[43452,43453,"Extend"],[43454,43455,"SpacingMark"],[43456,43456,"Extend"],[43493,43493,"Extend"],[43561,43566,"Extend"],[43567,43568,"SpacingMark"],[43569,43570,"Extend"],[43571,43572,"SpacingMark"],[43573,43574,"Extend"],[43587,43587,"Extend"],[43596,43596,"Extend"],[43597,43597,"SpacingMark"],[43644,43644,"Extend"],[43696,43696,"Extend"],[43698,43700,"Extend"],[43703,43704,"Extend"],[43710,43711,"Extend"],[43713,43713,"Extend"],[43755,43755,"SpacingMark"],[43756,43757,"Extend"],[43758,43759,"SpacingMark"],[43765,43765,"SpacingMark"],[43766,43766,"Extend"],[44003,44004,"SpacingMark"],[44005,44005,"Extend"],[44006,44007,"SpacingMark"],[44008,44008,"Extend"],[44009,44010,"SpacingMark"],[44012,44012,"SpacingMark"],[44013,44013,"Extend"],[44032,55203,"LV_LVT"],[55216,55238,"V"],[55243,55291,"T"],[64286,64286,"Extend"],[65024,65039,"Extend"],[65056,65071,"Extend"],[65279,65279,"Control"],[65438,65439,"Extend"],[65520,65531,"Control"],[66045,66045,"Extend"],[66272,66272,"Extend"],[66422,66426,"Extend"],[68097,68099,"Extend"],[68101,68102,"Extend"],[68108,68111,"Extend"],[68152,68154,"Extend"],[68159,68159,"Extend"],[68325,68326,"Extend"],[68900,68903,"Extend"],[68969,68973,"Extend"],[69291,69292,"Extend"],[69370,69375,"Extend"],[69446,69456,"Extend"],[69506,69509,"Extend"],[69632,69632,"SpacingMark"],[69633,69633,"Extend"],[69634,69634,"SpacingMark"],[69688,69702,"Extend"],[69744,69744,"Extend"],[69747,69748,"Extend"],[69759,69761,"Extend"],[69762,69762,"SpacingMark"],[69808,69810,"SpacingMark"],[69811,69814,"Extend"],[69815,69816,"SpacingMark"],[69817,69818,"Extend"],[69821,69821,"Prepend"],[69826,69826,"Extend"],[69837,69837,"Prepend"],[69888,69890,"Extend"],[69927,69931,"Extend"],[69932,69932,"SpacingMark"],[69933,69940,"Extend"],[69957,69958,"SpacingMark"],[70003,70003,"Extend"],[70016,70017,"Extend"],[70018,70018,"SpacingMark"],[70067,70069,"SpacingMark"],[70070,70078,"Extend"],[70079,70079,"SpacingMark"],[70080,70080,"Extend"],[70082,70083,"Prepend"],[70089,70092,"Extend"],[70094,70094,"SpacingMark"],[70095,70095,"Extend"],[70188,70190,"SpacingMark"],[70191,70193,"Extend"],[70194,70195,"SpacingMark"],[70196,70199,"Extend"],[70206,70206,"Extend"],[70209,70209,"Extend"],[70367,70367,"Extend"],[70368,70370,"SpacingMark"],[70371,70378,"Extend"],[70400,70401,"Extend"],[70402,70403,"SpacingMark"],[70459,70460,"Extend"],[70462,70462,"Extend"],[70463,70463,"SpacingMark"],[70464,70464,"Extend"],[70465,70468,"SpacingMark"],[70471,70472,"SpacingMark"],[70475,70476,"SpacingMark"],[70477,70477,"Extend"],[70487,70487,"Extend"],[70498,70499,"SpacingMark"],[70502,70508,"Extend"],[70512,70516,"Extend"],[70584,70584,"Extend"],[70585,70586,"SpacingMark"],[70587,70592,"Extend"],[70594,70594,"Extend"],[70597,70597,"Extend"],[70599,70601,"Extend"],[70602,70602,"SpacingMark"],[70604,70605,"SpacingMark"],[70606,70608,"Extend"],[70609,70609,"Prepend"],[70610,70610,"Extend"],[70625,70626,"Extend"],[70709,70711,"SpacingMark"],[70712,70719,"Extend"],[70720,70721,"SpacingMark"],[70722,70724,"Extend"],[70725,70725,"SpacingMark"],[70726,70726,"Extend"],[70750,70750,"Extend"],[70832,70832,"Extend"],[70833,70834,"SpacingMark"],[70835,70840,"Extend"],[70841,70841,"SpacingMark"],[70842,70842,"Extend"],[70843,70844,"SpacingMark"],[70845,70845,"Extend"],[70846,70846,"SpacingMark"],[70847,70848,"Extend"],[70849,70849,"SpacingMark"],[70850,70851,"Extend"],[71087,71087,"Extend"],[71088,71089,"SpacingMark"],[71090,71093,"Extend"],[71096,71099,"SpacingMark"],[71100,71101,"Extend"],[71102,71102,"SpacingMark"],[71103,71104,"Extend"],[71132,71133,"Extend"],[71216,71218,"SpacingMark"],[71219,71226,"Extend"],[71227,71228,"SpacingMark"],[71229,71229,"Extend"],[71230,71230,"SpacingMark"],[71231,71232,"Extend"],[71339,71339,"Extend"],[71340,71340,"SpacingMark"],[71341,71341,"Extend"],[71342,71343,"SpacingMark"],[71344,71351,"Extend"],[71453,71453,"Extend"],[71454,71454,"SpacingMark"],[71455,71455,"Extend"],[71458,71461,"Extend"],[71462,71462,"SpacingMark"],[71463,71467,"Extend"],[71724,71726,"SpacingMark"],[71727,71735,"Extend"],[71736,71736,"SpacingMark"],[71737,71738,"Extend"],[71984,71984,"Extend"],[71985,71989,"SpacingMark"],[71991,71992,"SpacingMark"],[71995,71998,"Extend"],[71999,71999,"Prepend"],[72000,72000,"SpacingMark"],[72001,72001,"Prepend"],[72002,72002,"SpacingMark"],[72003,72003,"Extend"],[72145,72147,"SpacingMark"],[72148,72151,"Extend"],[72154,72155,"Extend"],[72156,72159,"SpacingMark"],[72160,72160,"Extend"],[72164,72164,"SpacingMark"],[72193,72202,"Extend"],[72243,72248,"Extend"],[72249,72249,"SpacingMark"],[72251,72254,"Extend"],[72263,72263,"Extend"],[72273,72278,"Extend"],[72279,72280,"SpacingMark"],[72281,72283,"Extend"],[72324,72329,"Prepend"],[72330,72342,"Extend"],[72343,72343,"SpacingMark"],[72344,72345,"Extend"],[72544,72544,"Extend"],[72545,72545,"SpacingMark"],[72546,72548,"Extend"],[72549,72549,"SpacingMark"],[72550,72550,"Extend"],[72551,72551,"SpacingMark"],[72751,72751,"SpacingMark"],[72752,72758,"Extend"],[72760,72765,"Extend"],[72766,72766,"SpacingMark"],[72767,72767,"Extend"],[72850,72871,"Extend"],[72873,72873,"SpacingMark"],[72874,72880,"Extend"],[72881,72881,"SpacingMark"],[72882,72883,"Extend"],[72884,72884,"SpacingMark"],[72885,72886,"Extend"],[73009,73014,"Extend"],[73018,73018,"Extend"],[73020,73021,"Extend"],[73023,73029,"Extend"],[73030,73030,"Prepend"],[73031,73031,"Extend"],[73098,73102,"SpacingMark"],[73104,73105,"Extend"],[73107,73108,"SpacingMark"],[73109,73109,"Extend"],[73110,73110,"SpacingMark"],[73111,73111,"Extend"],[73459,73460,"Extend"],[73461,73462,"SpacingMark"],[73472,73473,"Extend"],[73474,73474,"Prepend"],[73475,73475,"SpacingMark"],[73524,73525,"SpacingMark"],[73526,73530,"Extend"],[73534,73535,"SpacingMark"],[73536,73538,"Extend"],[73562,73562,"Extend"],[78896,78911,"Control"],[78912,78912,"Extend"],[78919,78933,"Extend"],[90398,90409,"Extend"],[90410,90412,"SpacingMark"],[90413,90415,"Extend"],[92912,92916,"Extend"],[92976,92982,"Extend"],[93539,93539,"V"],[93543,93546,"V"],[94031,94031,"Extend"],[94033,94087,"SpacingMark"],[94095,94098,"Extend"],[94180,94180,"Extend"],[94192,94193,"Extend"],[113821,113822,"Extend"],[113824,113827,"Control"],[118528,118573,"Extend"],[118576,118598,"Extend"],[119141,119145,"Extend"],[119149,119154,"Extend"],[119155,119162,"Control"],[119163,119170,"Extend"],[119173,119179,"Extend"],[119210,119213,"Extend"],[119362,119364,"Extend"],[121344,121398,"Extend"],[121403,121452,"Extend"],[121461,121461,"Extend"],[121476,121476,"Extend"],[121499,121503,"Extend"],[121505,121519,"Extend"],[122880,122886,"Extend"],[122888,122904,"Extend"],[122907,122913,"Extend"],[122915,122916,"Extend"],[122918,122922,"Extend"],[123023,123023,"Extend"],[123184,123190,"Extend"],[123566,123566,"Extend"],[123628,123631,"Extend"],[124140,124143,"Extend"],[124398,124399,"Extend"],[124643,124643,"Extend"],[124646,124646,"Extend"],[124654,124655,"Extend"],[124661,124661,"Extend"],[125136,125142,"Extend"],[125252,125258,"Extend"],[127462,127487,"Regional_Indicator"],[127995,127999,"Extend"],[917504,917535,"Control"],[917536,917631,"Extend"],[917632,917759,"Control"],[917760,917999,"Extend"],[918000,921599,"Control"]],extended_pictographic:[[169,169],[174,174],[8252,8252],[8265,8265],[8482,8482],[8505,8505],[8596,8601],[8617,8618],[8986,8987],[9000,9000],[9167,9167],[9193,9203],[9208,9210],[9410,9410],[9642,9643],[9654,9654],[9664,9664],[9723,9726],[9728,9732],[9742,9742],[9745,9745],[9748,9749],[9752,9752],[9757,9757],[9760,9760],[9762,9763],[9766,9766],[9770,9770],[9774,9775],[9784,9786],[9792,9792],[9794,9794],[9800,9811],[9823,9824],[9827,9827],[9829,9830],[9832,9832],[9851,9851],[9854,9855],[9874,9879],[9881,9881],[9883,9884],[9888,9889],[9895,9895],[9898,9899],[9904,9905],[9917,9918],[9924,9925],[9928,9928],[9934,9935],[9937,9937],[9939,9940],[9961,9962],[9968,9973],[9975,9978],[9981,9981],[9986,9986],[9989,9989],[9992,9997],[9999,9999],[10002,10002],[10004,10004],[10006,10006],[10013,10013],[10017,10017],[10024,10024],[10035,10036],[10052,10052],[10055,10055],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10083,10084],[10133,10135],[10145,10145],[10160,10160],[10175,10175],[10548,10549],[11013,11015],[11035,11036],[11088,11088],[11093,11093],[12336,12336],[12349,12349],[12951,12951],[12953,12953],[126980,126980],[127020,127023],[127124,127135],[127151,127152],[127168,127168],[127183,127184],[127222,127231],[127344,127345],[127358,127359],[127374,127374],[127377,127386],[127406,127461],[127489,127503],[127514,127514],[127535,127535],[127538,127546],[127548,127551],[127561,127583],[127590,127777],[127780,127891],[127894,127895],[127897,127899],[127902,127984],[127987,127989],[127991,127994],[128000,128253],[128255,128317],[128329,128334],[128336,128359],[128367,128368],[128371,128378],[128391,128391],[128394,128397],[128400,128400],[128405,128406],[128420,128421],[128424,128424],[128433,128434],[128444,128444],[128450,128452],[128465,128467],[128476,128478],[128481,128481],[128483,128483],[128488,128488],[128495,128495],[128499,128499],[128506,128591],[128640,128709],[128715,128722],[128725,128741],[128745,128745],[128747,128752],[128755,128767],[128986,129023],[129036,129039],[129096,129103],[129114,129119],[129160,129167],[129198,129199],[129212,129215],[129218,129231],[129241,129279],[129292,129338],[129340,129349],[129351,129535],[129624,129631],[129646,129791],[130048,131069]],incb:[[768,879,"Extend"],[1155,1161,"Extend"],[1425,1469,"Extend"],[1471,1471,"Extend"],[1473,1474,"Extend"],[1476,1477,"Extend"],[1479,1479,"Extend"],[1552,1562,"Extend"],[1611,1631,"Extend"],[1648,1648,"Extend"],[1750,1756,"Extend"],[1759,1764,"Extend"],[1767,1768,"Extend"],[1770,1773,"Extend"],[1809,1809,"Extend"],[1840,1866,"Extend"],[1958,1968,"Extend"],[2027,2035,"Extend"],[2045,2045,"Extend"],[2070,2073,"Extend"],[2075,2083,"Extend"],[2085,2087,"Extend"],[2089,2093,"Extend"],[2137,2139,"Extend"],[2199,2207,"Extend"],[2250,2273,"Extend"],[2275,2306,"Extend"],[2325,2361,"Consonant"],[2362,2362,"Extend"],[2364,2364,"Extend"],[2369,2376,"Extend"],[2381,2381,"Linker"],[2385,2391,"Extend"],[2392,2399,"Consonant"],[2402,2403,"Extend"],[2424,2431,"Consonant"],[2433,2433,"Extend"],[2453,2472,"Consonant"],[2474,2480,"Consonant"],[2482,2482,"Consonant"],[2486,2489,"Consonant"],[2492,2492,"Extend"],[2494,2494,"Extend"],[2497,2500,"Extend"],[2509,2509,"Linker"],[2519,2519,"Extend"],[2524,2525,"Consonant"],[2527,2527,"Consonant"],[2530,2531,"Extend"],[2544,2545,"Consonant"],[2558,2558,"Extend"],[2561,2562,"Extend"],[2620,2620,"Extend"],[2625,2626,"Extend"],[2631,2632,"Extend"],[2635,2637,"Extend"],[2641,2641,"Extend"],[2672,2673,"Extend"],[2677,2677,"Extend"],[2689,2690,"Extend"],[2709,2728,"Consonant"],[2730,2736,"Consonant"],[2738,2739,"Consonant"],[2741,2745,"Consonant"],[2748,2748,"Extend"],[2753,2757,"Extend"],[2759,2760,"Extend"],[2765,2765,"Linker"],[2786,2787,"Extend"],[2809,2809,"Consonant"],[2810,2815,"Extend"],[2817,2817,"Extend"],[2837,2856,"Consonant"],[2858,2864,"Consonant"],[2866,2867,"Consonant"],[2869,2873,"Consonant"],[2876,2876,"Extend"],[2878,2879,"Extend"],[2881,2884,"Extend"],[2893,2893,"Linker"],[2901,2903,"Extend"],[2908,2909,"Consonant"],[2911,2911,"Consonant"],[2914,2915,"Extend"],[2929,2929,"Consonant"],[2946,2946,"Extend"],[3006,3006,"Extend"],[3008,3008,"Extend"],[3021,3021,"Extend"],[3031,3031,"Extend"],[3072,3072,"Extend"],[3076,3076,"Extend"],[3093,3112,"Consonant"],[3114,3129,"Consonant"],[3132,3132,"Extend"],[3134,3136,"Extend"],[3142,3144,"Extend"],[3146,3148,"Extend"],[3149,3149,"Linker"],[3157,3158,"Extend"],[3160,3162,"Consonant"],[3170,3171,"Extend"],[3201,3201,"Extend"],[3260,3260,"Extend"],[3263,3264,"Extend"],[3266,3266,"Extend"],[3270,3272,"Extend"],[3274,3277,"Extend"],[3285,3286,"Extend"],[3298,3299,"Extend"],[3328,3329,"Extend"],[3349,3386,"Consonant"],[3387,3388,"Extend"],[3390,3390,"Extend"],[3393,3396,"Extend"],[3405,3405,"Linker"],[3415,3415,"Extend"],[3426,3427,"Extend"],[3457,3457,"Extend"],[3530,3530,"Extend"],[3535,3535,"Extend"],[3538,3540,"Extend"],[3542,3542,"Extend"],[3551,3551,"Extend"],[3633,3633,"Extend"],[3636,3642,"Extend"],[3655,3662,"Extend"],[3761,3761,"Extend"],[3764,3772,"Extend"],[3784,3790,"Extend"],[3864,3865,"Extend"],[3893,3893,"Extend"],[3895,3895,"Extend"],[3897,3897,"Extend"],[3953,3966,"Extend"],[3968,3972,"Extend"],[3974,3975,"Extend"],[3981,3991,"Extend"],[3993,4028,"Extend"],[4038,4038,"Extend"],[4096,4138,"Consonant"],[4141,4144,"Extend"],[4146,4151,"Extend"],[4153,4153,"Linker"],[4154,4154,"Extend"],[4157,4158,"Extend"],[4159,4159,"Consonant"],[4176,4181,"Consonant"],[4184,4185,"Extend"],[4186,4189,"Consonant"],[4190,4192,"Extend"],[4193,4193,"Consonant"],[4197,4198,"Consonant"],[4206,4208,"Consonant"],[4209,4212,"Extend"],[4213,4225,"Consonant"],[4226,4226,"Extend"],[4229,4230,"Extend"],[4237,4237,"Extend"],[4238,4238,"Consonant"],[4253,4253,"Extend"],[4957,4959,"Extend"],[5906,5909,"Extend"],[5938,5940,"Extend"],[5970,5971,"Extend"],[6002,6003,"Extend"],[6016,6067,"Consonant"],[6068,6069,"Extend"],[6071,6077,"Extend"],[6086,6086,"Extend"],[6089,6097,"Extend"],[6098,6098,"Linker"],[6099,6099,"Extend"],[6109,6109,"Extend"],[6155,6157,"Extend"],[6159,6159,"Extend"],[6277,6278,"Extend"],[6313,6313,"Extend"],[6432,6434,"Extend"],[6439,6440,"Extend"],[6450,6450,"Extend"],[6457,6459,"Extend"],[6679,6680,"Extend"],[6683,6683,"Extend"],[6688,6740,"Consonant"],[6742,6742,"Extend"],[6744,6750,"Extend"],[6752,6752,"Linker"],[6754,6754,"Extend"],[6757,6764,"Extend"],[6771,6780,"Extend"],[6783,6783,"Extend"],[6832,6877,"Extend"],[6880,6891,"Extend"],[6912,6915,"Extend"],[6923,6924,"Consonant"],[6931,6963,"Consonant"],[6964,6973,"Extend"],[6978,6979,"Extend"],[6980,6980,"Linker"],[6981,6988,"Consonant"],[7019,7027,"Extend"],[7040,7041,"Extend"],[7043,7072,"Consonant"],[7074,7077,"Extend"],[7080,7082,"Extend"],[7083,7083,"Linker"],[7084,7085,"Extend"],[7086,7087,"Consonant"],[7099,7101,"Consonant"],[7142,7142,"Extend"],[7144,7145,"Extend"],[7149,7149,"Extend"],[7151,7155,"Extend"],[7212,7219,"Extend"],[7222,7223,"Extend"],[7376,7378,"Extend"],[7380,7392,"Extend"],[7394,7400,"Extend"],[7405,7405,"Extend"],[7412,7412,"Extend"],[7416,7417,"Extend"],[7616,7679,"Extend"],[8205,8205,"Extend"],[8400,8432,"Extend"],[11503,11505,"Extend"],[11647,11647,"Extend"],[11744,11775,"Extend"],[12330,12335,"Extend"],[12441,12442,"Extend"],[42607,42610,"Extend"],[42612,42621,"Extend"],[42654,42655,"Extend"],[42736,42737,"Extend"],[43010,43010,"Extend"],[43014,43014,"Extend"],[43019,43019,"Extend"],[43045,43046,"Extend"],[43052,43052,"Extend"],[43204,43205,"Extend"],[43232,43249,"Extend"],[43263,43263,"Extend"],[43302,43309,"Extend"],[43335,43345,"Extend"],[43347,43347,"Extend"],[43392,43394,"Extend"],[43401,43403,"Consonant"],[43407,43442,"Consonant"],[43443,43443,"Extend"],[43446,43449,"Extend"],[43452,43453,"Extend"],[43456,43456,"Linker"],[43488,43492,"Consonant"],[43493,43493,"Extend"],[43495,43503,"Consonant"],[43514,43518,"Consonant"],[43561,43566,"Extend"],[43569,43570,"Extend"],[43573,43574,"Extend"],[43587,43587,"Extend"],[43596,43596,"Extend"],[43616,43631,"Consonant"],[43633,43635,"Consonant"],[43642,43642,"Consonant"],[43644,43644,"Extend"],[43646,43647,"Consonant"],[43696,43696,"Extend"],[43698,43700,"Extend"],[43703,43704,"Extend"],[43710,43711,"Extend"],[43713,43713,"Extend"],[43744,43754,"Consonant"],[43756,43757,"Extend"],[43766,43766,"Linker"],[43968,43994,"Consonant"],[44005,44005,"Extend"],[44008,44008,"Extend"],[44013,44013,"Extend"],[64286,64286,"Extend"],[65024,65039,"Extend"],[65056,65071,"Extend"],[65438,65439,"Extend"],[66045,66045,"Extend"],[66272,66272,"Extend"],[66422,66426,"Extend"],[68096,68096,"Consonant"],[68097,68099,"Extend"],[68101,68102,"Extend"],[68108,68111,"Extend"],[68112,68115,"Consonant"],[68117,68119,"Consonant"],[68121,68149,"Consonant"],[68152,68154,"Extend"],[68159,68159,"Linker"],[68325,68326,"Extend"],[68900,68903,"Extend"],[68969,68973,"Extend"],[69291,69292,"Extend"],[69370,69375,"Extend"],[69446,69456,"Extend"],[69506,69509,"Extend"],[69633,69633,"Extend"],[69688,69702,"Extend"],[69744,69744,"Extend"],[69747,69748,"Extend"],[69759,69761,"Extend"],[69811,69814,"Extend"],[69817,69818,"Extend"],[69826,69826,"Extend"],[69888,69890,"Extend"],[69891,69926,"Consonant"],[69927,69931,"Extend"],[69933,69938,"Extend"],[69939,69939,"Linker"],[69940,69940,"Extend"],[69956,69956,"Consonant"],[69959,69959,"Consonant"],[70003,70003,"Extend"],[70016,70017,"Extend"],[70070,70078,"Extend"],[70080,70080,"Extend"],[70089,70092,"Extend"],[70095,70095,"Extend"],[70191,70193,"Extend"],[70196,70199,"Extend"],[70206,70206,"Extend"],[70209,70209,"Extend"],[70367,70367,"Extend"],[70371,70378,"Extend"],[70400,70401,"Extend"],[70459,70460,"Extend"],[70462,70462,"Extend"],[70464,70464,"Extend"],[70477,70477,"Extend"],[70487,70487,"Extend"],[70502,70508,"Extend"],[70512,70516,"Extend"],[70528,70537,"Consonant"],[70539,70539,"Consonant"],[70542,70542,"Consonant"],[70544,70581,"Consonant"],[70584,70584,"Extend"],[70587,70592,"Extend"],[70594,70594,"Extend"],[70597,70597,"Extend"],[70599,70601,"Extend"],[70606,70607,"Extend"],[70608,70608,"Linker"],[70610,70610,"Extend"],[70625,70626,"Extend"],[70712,70719,"Extend"],[70722,70724,"Extend"],[70726,70726,"Extend"],[70750,70750,"Extend"],[70832,70832,"Extend"],[70835,70840,"Extend"],[70842,70842,"Extend"],[70845,70845,"Extend"],[70847,70848,"Extend"],[70850,70851,"Extend"],[71087,71087,"Extend"],[71090,71093,"Extend"],[71100,71101,"Extend"],[71103,71104,"Extend"],[71132,71133,"Extend"],[71219,71226,"Extend"],[71229,71229,"Extend"],[71231,71232,"Extend"],[71339,71339,"Extend"],[71341,71341,"Extend"],[71344,71351,"Extend"],[71453,71453,"Extend"],[71455,71455,"Extend"],[71458,71461,"Extend"],[71463,71467,"Extend"],[71727,71735,"Extend"],[71737,71738,"Extend"],[71936,71942,"Consonant"],[71945,71945,"Consonant"],[71948,71955,"Consonant"],[71957,71958,"Consonant"],[71960,71983,"Consonant"],[71984,71984,"Extend"],[71995,71997,"Extend"],[71998,71998,"Linker"],[72003,72003,"Extend"],[72148,72151,"Extend"],[72154,72155,"Extend"],[72160,72160,"Extend"],[72192,72192,"Consonant"],[72193,72202,"Extend"],[72203,72242,"Consonant"],[72243,72248,"Extend"],[72251,72254,"Extend"],[72263,72263,"Linker"],[72272,72272,"Consonant"],[72273,72278,"Extend"],[72281,72283,"Extend"],[72284,72323,"Consonant"],[72330,72342,"Extend"],[72344,72344,"Extend"],[72345,72345,"Linker"],[72544,72544,"Extend"],[72546,72548,"Extend"],[72550,72550,"Extend"],[72752,72758,"Extend"],[72760,72765,"Extend"],[72767,72767,"Extend"],[72850,72871,"Extend"],[72874,72880,"Extend"],[72882,72883,"Extend"],[72885,72886,"Extend"],[73009,73014,"Extend"],[73018,73018,"Extend"],[73020,73021,"Extend"],[73023,73029,"Extend"],[73031,73031,"Extend"],[73104,73105,"Extend"],[73109,73109,"Extend"],[73111,73111,"Extend"],[73459,73460,"Extend"],[73472,73473,"Extend"],[73476,73488,"Consonant"],[73490,73523,"Consonant"],[73526,73530,"Extend"],[73536,73537,"Extend"],[73538,73538,"Linker"],[73562,73562,"Extend"],[78912,78912,"Extend"],[78919,78933,"Extend"],[90398,90409,"Extend"],[90413,90415,"Extend"],[92912,92916,"Extend"],[92976,92982,"Extend"],[94031,94031,"Extend"],[94095,94098,"Extend"],[94180,94180,"Extend"],[94192,94193,"Extend"],[113821,113822,"Extend"],[118528,118573,"Extend"],[118576,118598,"Extend"],[119141,119145,"Extend"],[119149,119154,"Extend"],[119163,119170,"Extend"],[119173,119179,"Extend"],[119210,119213,"Extend"],[119362,119364,"Extend"],[121344,121398,"Extend"],[121403,121452,"Extend"],[121461,121461,"Extend"],[121476,121476,"Extend"],[121499,121503,"Extend"],[121505,121519,"Extend"],[122880,122886,"Extend"],[122888,122904,"Extend"],[122907,122913,"Extend"],[122915,122916,"Extend"],[122918,122922,"Extend"],[123023,123023,"Extend"],[123184,123190,"Extend"],[123566,123566,"Extend"],[123628,123631,"Extend"],[124140,124143,"Extend"],[124398,124399,"Extend"],[124643,124643,"Extend"],[124646,124646,"Extend"],[124654,124655,"Extend"],[124661,124661,"Extend"],[125136,125142,"Extend"],[125252,125258,"Extend"],[127995,127999,"Extend"],[917536,917631,"Extend"],[917760,917999,"Extend"]],joins:[{virama:"್",consonants:"ಕಖಗಘಙಚಛಜಝಞಟಠಡಢಣತಥದಧನಪಫಬಭಮಯರಱಲಳವಶಷಸಹೝೞ",sign:"",after:""},{virama:"੍",consonants:"ਰਹ",sign:"",after:""},{virama:"্",consonants:"য",sign:"া",after:""},{virama:"்",consonants:"ர",sign:"ீ",after:"ஸ"},{virama:"୍",consonants:"ବ",sign:"",after:"ଓ"}],classes:{"್":{letters:"ಀಅಆಇಈಉಊಋಌಎಏಐಒಓಔಕಖಗಘಙಚಛಜಝಞಟಠಡಢಣತಥದಧನಪಫಬಭಮಯರಱಲಳವಶಷಸಹಽೝೞೠೡೱೲ",nuktas:"಼",signs:"ಾಿೀುೂೃೄೆೇೈೊೋೌೢೣ"},"੍":{letters:"ਅਆਇਈਉਊਏਐਓਔਕਖਗਘਙਚਛਜਝਞਟਠਡਢਣਤਥਦਧਨਪਫਬਭਮਯਰਲਲ਼ਵਸ਼ਸਹਖ਼ਗ਼ਜ਼ੜਫ਼ੲੳੴ",nuktas:"਼",signs:"ਾਿੀੁੂੇੈੋੌ"},"্":{letters:"ঀঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহঽৎড়ঢ়য়ৠৡৰৱৼ",nuktas:"়",signs:"ািীুূৃৄেৈোৌৢৣ"},"்":{letters:"ஃஅஆஇஈஉஊஎஏஐஒஓஔகஙசஜஞடணதநனபமயரறலளழவஶஷஸஹௐ",nuktas:"",signs:"ாிீுூெேைொோௌ"},"୍":{letters:"ଅଆଇଈଉଊଋଌଏଐଓଔକଖଗଘଙଚଛଜଝଞଟଠଡଢଣତଥଦଧନପଫବଭମଯରଲଳଵଶଷସହଽଡ଼ଢ଼ୟୠୡୱ",nuktas:"଼",signs:"ାିୀୁୂୃୄେୈୋୌୢୣ"}}};var y={CR:1,LF:2,Control:3,Extend:4,ZWJ:5,Regional_Indicator:6,Prepend:7,SpacingMark:8,L:9,V:10,T:11,LV:12,LVT:13,LV_LVT:14};var D={Linker:1,Consonant:2,Extend:3};class V{first;last;value;constructor(E,o){this.first=new Uint32Array(E.map((k)=>k[0])),this.last=new Uint32Array(E.map((k)=>k[1])),this.value=new Uint8Array(E.map(o))}get(E){let o=0,k=this.first.length-1;while(o<=k){let a=o+k>>1;if(E<this.first[a])k=a-1;else if(E>this.last[a])o=a+1;else return this.value[a]}return 0}}function G(E){let o=new V(E.grapheme_break,(n)=>y[n[2]]),k=new V(E.extended_pictographic,()=>1),a=new V(E.incb,(n)=>D[n[2]]),p=new Map;for(let n of E.joins){let e=n.virama.codePointAt(0);p.set(e,[...p.get(e)??[],n])}let S=new Map(Object.entries(E.classes).map(([n,e])=>[n.codePointAt(0),e])),T=8205;function l(n){let e=o.get(n);return e===14?(n-44032)%28===0?12:13:e}function F(n){let e=[];if(n.length===0)return e;let d=l(n[0]),C=d===6?1:0,r=k.get(n[0])===1,i=!1,M=a.get(n[0])===2?1:0;for(let g=1;g<n.length;g++){let c=n[g],t=l(c),L=k.get(c)===1,P=a.get(c),x;if(d===1&&t===2)x=!1;else if(d===3||d===1||d===2)x=!0;else if(t===3||t===1||t===2)x=!0;else if(d===9&&(t===9||t===10||t===12||t===13))x=!1;else if((d===12||d===10)&&(t===10||t===11))x=!1;else if((d===13||d===11)&&t===11)x=!1;else if(t===4||t===5)x=!1;else if(t===8)x=!1;else if(d===7)x=!1;else if(M===2&&P===2)x=!1;else if(i&&L)x=!1;else if(d===6&&t===6)x=C%2===0;else x=!0;if(x)e.push(g);if(C=t===6?x?1:C+1:0,i=t===5&&r,r=L||t===4&&r,P===2)M=1;else if(P===1&&M>0)M=2;else if(P!==3)M=0;d=t}return e}function f(n,e){let d=n[e-1],C=p.get(d);if(!C||e<2)return!1;let r=S.get(d),i=(t,L)=>t.includes(String.fromCodePoint(L)),M=e-2;while(M>0&&i(r.nuktas,n[M]))M--;if(!i(r.letters,n[M]))return!1;let g=e+1;while(g<n.length&&i(r.nuktas,n[g]))g++;if(n[g]===d&&n[g+1]===T)return!1;let c=g<n.length&&i(r.signs,n[g])?n[g]:-1;return C.some((t)=>i(t.consonants,n[e])&&(!t.sign||t.sign.codePointAt(0)===c)&&(!t.after||i(t.after,n[M])))}return function(e){return F(e).filter((d)=>!f(e,d))}}var _=G(s);function H(E){let o=Array.from(E),k=o.map((S)=>S.codePointAt(0)),a=[0,..._(k),o.length],p=[];for(let S=1;S<a.length;S++)if(a[S]>a[S-1])p.push(o.slice(a[S-1],a[S]).join(""));return p}function W(E){return H(E).length}function X(E){return _(Array.from(E,(o)=>o.codePointAt(0)))}var Y=s.version,Z=s.unicode;export{H as segment,W as count,X as codePointBounds,Z as UNICODE_VERSION,Y as RULES_VERSION};
@@ -0,0 +1 @@
1
+ var b={version:"2026-10-11",rest:2,members:["അംഗീകാര","അച്ചടക്ക","അടയാള","അടിത്തറ","അടിസ്ഥാന","അദ്ദേഹ","അന്തസ്സ","അഭിപ്രായ","അഭിമാന","അഭിലാഷ","അരങ്ങ","അവകാശ","അവതരി","അർത്ഥ","അർപ്പണ","ആഖ്യാന","ആഗ്രഹി","ആത്മവിശ്വാസ","ആരംഭി","ആരോഗ്യ","ആവശ്യ","ഇടപെട","ഇന്ത്യ","ഇരട്ടി","ഉദ്യോഗസ്ഥ","ഉപകരണ","ഉപയോഗ","ഉയർത്ത","ഉറപ്പ","ഉൾക്കൊള്ളു","ഉൾപ്പെടു","ഊർജ്ജ","എന്നിവ","എളുപ്പ","എഴുത്ത","ഏകോപന","ഒത്തു","ഓർമ്മ","കണക്ക","കരകൗശല","കരുത്ത","കഴിയു","കാര്യ","കാലഘട്ട","കാഴ്ച","കാഴ്ചപ്പാട","കുടുംബ","കുട്ടി","കൂട്ട","കൃത്യത","കേന്ദ്ര","കൈവരി","ക്ഷേത്ര","ക്ഷേമ","ഗവേഷണ","ഗവൺമെന്റ","ഗോത്ര","ഗ്രാമ","ചടങ്ങ","ചരിത്ര","ചിത്ര","ചിന്ത","ചെയ്യ","ചെയ്യു","ചർച്ച","ജനാധിപത്യ","ജില്ല","ജീവിത","തടസ്സ","തന്ത്ര","തയ്യാ","തീരുമാന","തൊഴിലാളി","ത്വരിത","ദിവ്യ","ദൃശ്യ","ദേശീയ","ദൗത്യ","ധൈര്യ","നടത്ത","നടപടി","നവീകരണ","നാഴികക്കല്ല","നാവിക","നിമിഷ","നിശ്ചയ","നിർബന്ധ","നിർമ്മാണ","നേട്ട","നേതൃത്വ","നേരിട","പങ്കാളി","പങ്കെടു","പദ്ധതി","പരിപാടി","പരിവർത്തന","പരിശീലന","പരിശ്രമ","പാരമ്പര്യ","പിന്തുണ","പുണ്യ","പുരോഗതി","പൂർത്തി","പൈതൃക","പൊരുത്ത","പോരാട്ട","പോർട്ട","പ്രകടന","പ്രകൃതി","പ്രക്രിയ","പ്രചോദന","പ്രതികരണ","പ്രതിജ്ഞ","പ്രതിഫലി","പ്രതിബദ്ധത","പ്രതീക","പ്രതീക്ഷ","പ്രദേശ","പ്രദർശന","പ്രധാന","പ്രധാനമന്ത്രി","പ്രമേയ","പ്രയോജന","പ്രവർത്തക","പ്രവർത്തന","പ്രവർത്തി","പ്രസക്ത","പ്രാധാന്യ","ബന്ധി","ബഹുമാന","ബുദ്ധി","ബുദ്ധിമുട്ട","ഭരണഘടന","മത്സര","മത്സ്യ","മനസ്സ","മനസ്സിലാക്ക","മനോഭാവ","മന്ത്ര","മന്ത്രാലയ","മന്ത്രി","മാതൃക","മാത്ര","മാധ്യമ","മാറ്റ","മുഖ്യമന്ത്രി","മുന്ന","മൂല്യ","മെച്ച","യാത്ര","യാഥാർത്ഥ്യ","യുദ്ധ","രാജ്യ","രാഷ്ട്ര","ലക്ഷ്യ","ലഭിക്കു","വളർച്ച","വളർത്ത","വികസന","വികസി","വികാര","വിദ്യാഭ്യാസ","വിദ്യാർത്ഥി","വിധേയ","വിനോദ","വിപണി","വിഭാഗ","വിമാന","വിശ്വാസ","വെല്ലുവിളി","വൈവിധ്യ","വ്യക്ത","വ്യക്തി","വ്യക്തിത്വ","വ്യവസായ","വർത്തമാന","വർദ്ധി","ശക്തി","ശാരീരിക","ശൃംഖല","സംഗീത","സംഭാവന","സംരംഭ","സംരക്ഷണ","സംരക്ഷിക്ക","സംരക്ഷിക്കു","സംവിധാന","സംവേദന","സംസ്കാര","സംസ്ഥാന","സന്തോഷ","സന്ദേശ","സമാധാന","സമുദ്ര","സമ്പദ്‌വ്യവസ്ഥ","സമ്പന്ന","സമർപ്പണ","സഹകരണ","സഹായി","സാങ്കേതിക","സാധ്യ","സാധ്യത","സാന്നിധ്യ","സാമൂഹ്യ","സാഹചര്യ","സിനിമ","സുരക്ഷ","സൃഷ്ടി","സൃഷ്ടിക്ക","സൃഷ്ടിക്കു","സ്തംഭ","സ്ത്രീ","സ്ഥാന","സ്ഥാപന","സ്ഥാപി","സ്ഥാപിക്കു","സ്നേഹ","സ്വത്വ","സ്വപ്ന","സ്വഭാവ","സ്വാതന്ത്ര്യ","സ്വാധീന","സ്വീകരി","സൗകര്യ","സൗഹൃദ","സർക്കാ"]};var A=new Set(b.members),C=b.rest,D=Math.max(...b.members.map((q)=>[...q].length));function I(q){let x=[...q];for(let v=Math.min(D,x.length-C);v>=5;v--){let y=x.slice(0,v).join("");if(A.has(y))return y}return null}export{I as compoundKey};
package/dist/stem.js CHANGED
@@ -1 +1 @@
1
- var i={version:"2026-10-09",min_stem:2,max_end:6,vowel_signs:[2362,2363,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2382,2383,2389,2390,2391,2402,2403,2494,2495,2496,2497,2498,2499,2500,2503,2504,2507,2508,2530,2531,2622,2623,2624,2625,2626,2631,2632,2635,2636,2750,2751,2752,2753,2754,2755,2756,2757,2759,2760,2761,2763,2764,2786,2787,2878,2879,2880,2881,2882,2883,2884,2887,2888,2891,2892,2914,2915,3006,3007,3008,3009,3010,3014,3015,3016,3018,3019,3020,3134,3135,3136,3137,3138,3139,3140,3142,3143,3144,3146,3147,3148,3170,3171,3262,3263,3264,3265,3266,3267,3268,3270,3271,3272,3274,3275,3276,3298,3299,3390,3391,3392,3393,3394,3395,3396,3398,3399,3400,3402,3403,3404,3426,3427],languages:{as:{vowel_step:!0,passes:1,endings:["ও","ক","কক","কত","কে","কৰ","খন","খনৰ","গত","ছিল","ছে","জন","টো","টোক","টোত","টোৰ","টোৱে","ত","তত","তে","তো","তৰ","বলৈ","বোৰ","বোৰৰ","মূলক","য়ে","লৈ","লৈকে","সকলক","সকলে","সকলৰ","সমূহ","সমূহক","সমূহে","সমূহৰ","াই","াক","াব","ায়","ালে","াৰ","াৰত","াৰে","িব","িবলৈ","িয়ে","িলে","িৰ","ীয়","ীয়ে","ীৰ","েৰে","োৱা","োৱে","্ত","ৰ","ৰক","ৰত","ৰলৈ","ৰি","ৰে","ৰো","ৰৰ"]},bn:{vowel_step:!0,passes:1,endings:["ও","করণ","গত","গুলি","গুলিকে","গুলিতে","গুলির","ছে","টার","তে","দের","মূলক","রা","রার","াই","াকে","াটি","ানো","ায়","ার","ারকে","ারে","ারের","িকে","িয়ে","ির","ীর","ুর","েন","ের"]},gu:{vowel_step:!1,passes:1,endings:["ં","એ","ઓ","ણા","થી","ના","ની","નું","ને","નો","માં","વા","વાની","વાનું","વાનો","વામાં","વી","વું","શે","ા","ાં","ાએ","ાઓ","ાઓની","ાઓને","ાઓમાં","ાના","ાની","ાનું","ાને","ાનો","ામાં","ાય","િત","ી","ીએ","ીઓ","ીઓને","ીના","ીની","ીને","ીમાં","ીય","ુ","ું","ે","ો","ોએ","ોના","ોની","ોનું","ોને","ોનો","ોમાં","્યા","્યું","્સ"]},hi:{vowel_step:!0,passes:1,endings:["ं","एँ","एं","ओं","कर","ता","ताओं","ती","ते","ना","नी","ने","पूर्ण","यां","ाना","ाने","ाया","ियाँ","ियों","्"]},kn:{vowel_step:!0,passes:2,endings:["ಕ್ಕಾಗಿ","ಕ್ಕೆ","ಗಳ","ಗಳನ್ನು","ಗಳಲ್ಲಿ","ಗಳಿಂದ","ಗಳಿಗೆ","ಗಳು","ಗಾಗಿ","ಗೆ","ತ್ತವೆ","ತ್ತಾನೆ","ತ್ತಾರೆ","ದ","ದನು","ದರು","ದಲ್ಲಿ","ದವು","ದಿಂದ","ದ್ದಾರೆ","ನನ್ನು","ನು","ನ್ನು","ಬೇಕು","ಯನ್ನು","ಯಲ್ಲಿ","ಯಾಗಿ","ಯಿಂದ","ಯಿತು","ಯು","ರೆ","ಲಿನ","ಲು","ಲ್ಲಿ","ವನ್ನು","ವರು","ವಾಗಿ","ವಾಗಿದೆ","ವಾದ","ವು","ಾಗಿ","ಾಗಿದೆ","ಿಂದ","ಿಗೂ","ಿತ","ಿತು","ಿದೆ","ಿನ","ಿನಿಂದ","ಿಯ","ುತ್ತದೆ","ುವ","ುವುದು","ೆಯ","ೊಂದಿಗೆ","್"]},ml:{vowel_step:!0,passes:1,endings:["ം","കയും","കളിലും","കളിൽ","കളും","കളുടെ","കളെ","കൾ","കൾക്ക്","ങ്ങളിൽ","ങ്ങളും","ങ്ങളെ","ങ്ങൾ","ച്ച്","ത്തിന്","ത്തിലെ","ത്തിൽ","നും","നുള്ള","നെ","ന്","ന്ന","ന്നത്","ന്റെ","മാണ്","മായ","മായി","മാർ","മുള്ള","യാണ്","യായി","യിലും","യിലെ","യിൽ","യും","യുടെ","യെ","യ്ക്ക്","രുടെ","രെ","റെ","ല്ല","ള്ള","വും","വ്","ായി","ിക്ക്","ിലുള്ള","ിലെ","ിൽ","ുക","ുന്നു","്","്ടു","്സ്","ൺ","ൻ","ർക്ക്"]},mr:{vowel_step:!1,passes:1,endings:["ं","चा","ची","चे","च्या","ने","पणे","मधील","मध्ये","ही","ा","ांचा","ांची","ांचे","ांच्या","ांत","ांना","ांनी","ांवर","ांशी","ांसाठी","ाचा","ाची","ाचे","ाच्या","ात","ातील","ातून","ानंतर","ाना","ाने","ाला","ावर","ाशी","ासाठी","ित","ी","ीचा","ीची","ीचे","ीच्या","ीत","ीतील","ीने","ीमध्ये","ीय","ील","ीला","ीसाठी","े","ेचा","ेची","ेचे","ेच्या","ेत","ेने","ेला","ेवर","ो","्य","्या","्यांचा","्यांची","्यांना","्याचा","्याची","्याचे","्यात","्याने","्याला","्ये"]},ne:{vowel_step:!0,passes:1,endings:["ं","का","की","को","देखि","द्वारा","बाट","भन्दा","मा","माथि","सँग","सम्म","हरूका","हरूको","हरूमा","हरूलाई","हरूले","ामा","ालाई","ाले","ाहरू","िएका","ित","िन","िने","िन्","िहरू","ीमा","ीलाई","ीले","ीहरू","ेका","ेन","ेर","्छ","्छन्","्दा","्दै","्न","्नु","्ने","्यो"]},pa:{vowel_step:!0,passes:1,endings:["ਆਂ","ਇਆ","ਈ","ਈਆਂ","ਉਂਦਾ","ਉਂਦੇ","ਉਣ","ਉਣਾ","ਏ","ਕ","ਕਤਾ","ਕਰਨ","ਕਾਂ","ਣ","ਣਾ","ਣਾਂ","ਤਾ","ਨ","ਨਾ","ਨਾਂ","਼","਼ਾਂ","਼ੀ","ਾਂ","ਾਏ","ਾਨ","ਾਵਾਂ","ਿਆ","ਿਤ","ੀਂ","ੀਆ","ੇਂ","ੋਂ"]},sa:{vowel_step:!1,passes:1,endings:["ं","ः","त्","द्","न्","म्","य","या","याः","याम्","यै","योः","षु","सु","स्य","ा","ाः","ाणि","ात्","ानाम्","ानि","ान्","ाम्","ाय","ायाः","ायाम्","ासु","िनः","ी","े","ेण","ेन","ेभ्यः","ेषु","ैः","ौ"]},ta:{vowel_step:!0,passes:1,endings:["களால்","களின்","களில்","களுடன்","களை","களைப்","கள்","கின்றன","கிறார்","க்","க்கள்","க்காக","க்கான","ச்","த்","ன","னர்","னார்","னால்","னின்","ன்","ப்","ப்பட்ட","மான","ய","யாக","யான","யால்","யின்","யில்","யுடன்","யே","யை","ய்","ற்கு","லாம்","லின்","வது","வர்","வர்கள்","வின்","வில்","வில்லை","ாக","ாத","ார்","ார்கள்","ால்","ாவின்","ிக்கு","ின்","ிய","ியது","ியில்","ிறது","ில்","ுகிறது","ுக்கு","ுடன்","ுதல்","ும்","ுள்ள","ுள்ளது","ைக்கு","ையில்","ையும்","ோடு","்டது"]},te:{vowel_step:!0,passes:1,endings:["ం","ంగా","ంతో","ందని","ంది","ంలో","ంలోని","గా","టు","డు","తో","నాడు","ని","నికి","ను","న్న","న్నాడు","న్నాయి","న్నారు","పై","మని","ము","మైన","లకు","లతో","లను","లపై","లలో","లు","లో","లోకి","లోని","ల్లో","ాను","ాన్ని","ాయి","ారు","ించారు","ించిన","ికి","ుడు","ుతో","ుని","ుల","్","్న","్‌లో"]},ur:{vowel_step:!1,passes:1,endings:["ئی","ئیں","ئے","اء","ائی","ات","اں","تا","تہ","تی","تے","را","ری","ریوں","رے","ز","نا","نی","نیوں","نے","و","وں","ِ","ٰ","ٹنگ","ں","ہ","ہوں","یا","یت","ین","ینی","یں","ے"]}}};function l(e){let a=(e??"").toLowerCase().split(/[-_]/)[0],s=a.length===3?"asm as ben bn guj gu hin hi kan kn kas ks mal ml mar mr nep ne ori or pan pa san sa snd sd tam ta tel te urd ur ".indexOf(a+" "):-1;return s>=0&&s%7===0?"asm as ben bn guj gu hin hi kan kn kas ks mal ml mar mr nep ne ori or pan pa san sa snd sd tam ta tel te urd ur ".slice(s+4,s+6):a}var g=i.min_stem,u=i.max_end,c=new Set(i.vowel_signs.map((e)=>String.fromCodePoint(e))),_=new Map(Object.entries(i.languages).map(([e,a])=>[e,{endings:new Set(a.endings),vowel:a.vowel_step,passes:a.passes}])),b=i.version,x=[..._.keys()].sort();function I(e,a){let s=_.get(l(a));if(!s)return e;for(let n=0;n<s.passes;n++)e=m(e,s);return e}function m(e,a){let s=[e.length],n=e.length;while(s.length<=u+g&&n>0){let t=e.charCodeAt(--n);if(t>=56320&&t<=57343&&n>0)n--;s.push(n)}let p=n>0?1/0:s.length-1,h=e.length;for(let t=Math.min(u,p-g);t>0;t--)if(a.endings.has(e.slice(s[t]))){h=s[t],p-=t;break}if(a.vowel&&p>g&&c.has(e[h-1]))h--;return h===e.length?e:e.slice(0,h)}export{I as stem,b as RULES_VERSION,x as LANGUAGES};
1
+ var p={version:"2026-10-11",min_stem:2,max_end:6,vowel_signs:[2362,2363,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2382,2383,2389,2390,2391,2402,2403,2494,2495,2496,2497,2498,2499,2500,2503,2504,2507,2508,2530,2531,2622,2623,2624,2625,2626,2631,2632,2635,2636,2750,2751,2752,2753,2754,2755,2756,2757,2759,2760,2761,2763,2764,2786,2787,2878,2879,2880,2881,2882,2883,2884,2887,2888,2891,2892,2914,2915,3006,3007,3008,3009,3010,3014,3015,3016,3018,3019,3020,3134,3135,3136,3137,3138,3139,3140,3142,3143,3144,3146,3147,3148,3170,3171,3262,3263,3264,3265,3266,3267,3268,3270,3271,3272,3274,3275,3276,3298,3299,3390,3391,3392,3393,3394,3395,3396,3398,3399,3400,3402,3403,3404,3426,3427],languages:{as:{vowel_step:!0,passes:1,endings:["ও","ক","কক","কত","কে","কৰ","খন","খনৰ","গত","ছিল","ছে","জন","টো","টোক","টোত","টোৰ","টোৱে","ত","তত","তে","তো","তৰ","বলৈ","বোৰ","বোৰৰ","মূলক","য়ে","লৈ","লৈকে","সকলক","সকলে","সকলৰ","সমূহ","সমূহক","সমূহে","সমূহৰ","াই","াক","াব","ায়","ালে","াৰ","াৰত","াৰে","িব","িবলৈ","িয়ে","িলে","িৰ","ীয়","ীয়ে","ীৰ","েৰে","োৱা","োৱে","্ত","ৰ","ৰক","ৰত","ৰলৈ","ৰি","ৰে","ৰো","ৰৰ"]},bn:{vowel_step:!0,passes:1,endings:["ও","করণ","গত","গুলি","গুলিকে","গুলিতে","গুলির","ছে","টার","তে","দের","মূলক","রা","রার","াই","াকে","াটি","ানো","ায়","ার","ারকে","ারে","ারের","িকে","িয়ে","ির","ীর","ুর","েন","ের"]},brx:{vowel_step:!1,passes:1,endings:["आ","आव","खौ","नि","फोर","फोरखौ","फोरनि","फोरा","फोराव","मोन","याव","सिम","हा","ाव"]},doi:{vowel_step:!1,passes:1,endings:["ं","एं","ा","ां","ाएं","ियां","े","ें","ै"]},gom:{vowel_step:!1,passes:1,endings:["पणान","ल्लो","ा","ां","ांक","ांची","ांचो","ांत","ांनी","ाक","ाची","ाचे","ाचें","ाचेर","ाचो","ाच्या","ात","ी","ींत","े","ें","ेंत","ेक","ो","्या","्याक","्यो"]},gu:{vowel_step:!1,passes:2,endings:["ં","એ","ઓ","ણા","થી","ના","ની","નું","ને","નો","માં","વા","વાની","વાનું","વાનો","વામાં","વી","વું","શે","ા","ાં","ાએ","ાઓ","ાઓની","ાઓને","ાઓમાં","ાના","ાની","ાનું","ાને","ાનો","ામાં","ાય","િત","ી","ીએ","ીઓ","ીઓને","ીના","ીની","ીને","ીમાં","ીય","ુ","ું","ે","ો","ોએ","ોના","ોની","ોનું","ોને","ોનો","ોમાં","્યા","્યું","્સ"]},hi:{vowel_step:!0,passes:1,endings:["ं","एँ","एं","ओं","कर","ता","ताओं","ती","ते","ना","नी","ने","पूर्ण","यां","ाना","ाने","ाया","ियाँ","ियों","्"]},kn:{vowel_step:!0,passes:2,endings:["ಕ್ಕಾಗಿ","ಕ್ಕೆ","ಗಳ","ಗಳನ್ನು","ಗಳಲ್ಲಿ","ಗಳಿಂದ","ಗಳಿಗೆ","ಗಳು","ಗಾಗಿ","ಗೆ","ತ್ತವೆ","ತ್ತಾನೆ","ತ್ತಾರೆ","ದ","ದನು","ದರು","ದಲ್ಲಿ","ದವು","ದಿಂದ","ದ್ದಾರೆ","ನನ್ನು","ನು","ನ್ನು","ಬೇಕು","ಯನ್ನು","ಯಲ್ಲಿ","ಯಾಗಿ","ಯಿಂದ","ಯಿತು","ಯು","ರೆ","ಲಿನ","ಲು","ಲ್ಲಿ","ವನ್ನು","ವರು","ವಾಗಿ","ವಾಗಿದೆ","ವಾದ","ವು","ಾಗಿ","ಾಗಿದೆ","ಿಂದ","ಿಗೂ","ಿತ","ಿತು","ಿದೆ","ಿನ","ಿನಿಂದ","ಿಯ","ುತ್ತದೆ","ುವ","ುವುದು","ೆಯ","ೊಂದಿಗೆ","್"]},ks:{vowel_step:!1,passes:1,endings:["س","ن","َس","َن","ُک","ِ","ٕ","ٕچ","ک","ہٕ","ی","ین"]},mai:{vowel_step:!1,passes:2,endings:["क","कक","केँ","गत","तः","पर","मे","सँ","सब","सभ","सभक","सभकेँ","सभमे","हु","ित","ीय","ो"]},ml:{vowel_step:!0,passes:1,endings:["ം","കയും","കളിലും","കളിൽ","കളും","കളുടെ","കളെ","കൾ","കൾക്ക്","ങ്ങളിൽ","ങ്ങളും","ങ്ങളെ","ങ്ങൾ","ച്ച്","ത്തിന്","ത്തിലെ","ത്തിൽ","നും","നുള്ള","നെ","ന്","ന്ന","ന്നത്","ന്റെ","മാണ്","മായ","മായി","മാർ","മുള്ള","യാണ്","യായി","യിലും","യിലെ","യിൽ","യും","യുടെ","യെ","യ്ക്ക്","രുടെ","രെ","റെ","ല്ല","ള്ള","വും","വ്","ായി","ിക്ക്","ിലുള്ള","ിലെ","ിൽ","ുക","ുന്നു","്","്ടു","്സ്","ൺ","ൻ","ർക്ക്"]},mni:{vowel_step:!1,passes:1,endings:["কী","গী","দগী","দা","দি","না","বু","রিবা","শিং","শিংগী","শিংদা","শিংনা","্না","ꯀꯤ","ꯁꯤꯡ","ꯁꯤꯡꯅ","ꯁꯤꯡꯒꯤ","ꯁꯤꯡꯗ","ꯅ","ꯇ","ꯒꯤ","ꯗ","ꯗꯒꯤ","꯫"]},mr:{vowel_step:!1,passes:2,endings:["ं","चा","ची","चे","च्या","ने","पणे","मधील","मध्ये","ही","ा","ांचा","ांची","ांचे","ांच्या","ांत","ांना","ांनी","ांवर","ांशी","ांसाठी","ाचा","ाची","ाचे","ाच्या","ात","ातील","ातून","ानंतर","ाना","ाने","ाला","ावर","ाशी","ासाठी","ित","ी","ीचा","ीची","ीचे","ीच्या","ीत","ीतील","ीने","ीमध्ये","ीय","ील","ीला","ीसाठी","े","ेचा","ेची","ेचे","ेच्या","ेत","ेने","ेला","ेवर","ो","्य","्या","्यांचा","्यांची","्यांना","्याचा","्याची","्याचे","्यात","्याने","्याला","्ये"]},ne:{vowel_step:!0,passes:1,endings:["ं","का","की","को","देखि","द्वारा","बाट","भन्दा","मा","माथि","सँग","सम्म","हरूका","हरूको","हरूमा","हरूलाई","हरूले","ामा","ालाई","ाले","ाहरू","िएका","ित","िन","िने","िन्","िहरू","ीमा","ीलाई","ीले","ीहरू","ेका","ेन","ेर","्छ","्छन्","्दा","्दै","्न","्नु","्ने","्यो"]},or:{vowel_step:!1,passes:1,endings:["କୁ","ଗୁଡ଼ିକ","ଙ୍କ","ଙ୍କୁ","ର","ରକୁ","ରର","ରରେ","ରୁ","ରେ","୍"]},pa:{vowel_step:!0,passes:1,endings:["ਆਂ","ਇਆ","ਈ","ਈਆਂ","ਉਂਦਾ","ਉਂਦੇ","ਉਣ","ਉਣਾ","ਏ","ਕ","ਕਤਾ","ਕਰਨ","ਕਾਂ","ਣ","ਣਾ","ਣਾਂ","ਤਾ","ਨ","ਨਾ","ਨਾਂ","਼","਼ਾਂ","਼ੀ","ਾਂ","ਾਏ","ਾਨ","ਾਵਾਂ","ਿਆ","ਿਤ","ੀਂ","ੀਆ","ੇਂ","ੋਂ"]},sa:{vowel_step:!1,passes:1,endings:["ं","ः","णि","तुं","त्","त्वा","द्","नि","न्","भिः","म्","य","यते","यन्ते","या","यां","याः","याम्","यै","योः","षु","सु","स्य","ा","ां","ाः","ाणां","ाणि","ात्","ानां","ानाम्","ानि","ान्","ाम्","ाय","ायां","ायाः","ायाम्","ासु","िनः","ी","ीं","ीनां","ुः","े","ेण","ेन","ेभ्यः","ेषु","ैः","ो","ोः","ौ"]},sat:{vowel_step:!1,passes:2,endings:["ᱚᱛᱚ","ᱚᱜ","ᱚᱜᱼᱟ","ᱛᱚ","ᱛᱮ","ᱟ","ᱟᱨᱮ","ᱟᱭ","ᱟᱱ","ᱠᱚ","ᱦᱚᱸ","ᱨᱮ","ᱭ","ᱭᱟ","ᱭᱟᱱ","ᱮ","ᱮᱭ","ᱼᱟ","ᱽ"]},sd:{vowel_step:!1,passes:1,endings:["ءَ","ءِ","ا","ائڻ","ج","جي","دا","دي","دين","دڙ","ن","ندا","ندو","ندي","نن","هن","هو","و","ون","يا","يل","يو","يون","کي","ڻ","ं","ंदो","अ","नि","ा","ां","ि","ियुनि","ियूं","ु","ुनि","ूं","े","ो"]},ta:{vowel_step:!0,passes:1,endings:["களால்","களின்","களில்","களுடன்","களை","களைப்","கள்","கின்றன","கிறார்","க்","க்கள்","க்காக","க்கான","ச்","த்","ன","னர்","னார்","னால்","னின்","ன்","ப்","ப்பட்ட","மான","ய","யாக","யான","யால்","யின்","யில்","யுடன்","யே","யை","ய்","ற்கு","லாம்","லின்","வது","வர்","வர்கள்","வின்","வில்","வில்லை","ாக","ாத","ார்","ார்கள்","ால்","ாவின்","ிக்கு","ின்","ிய","ியது","ியில்","ிறது","ில்","ுகிறது","ுக்கு","ுடன்","ுதல்","ும்","ுள்ள","ுள்ளது","ைக்கு","ையில்","ையும்","ோடு","்டது"]},te:{vowel_step:!0,passes:1,endings:["ం","ంగా","ంతో","ందని","ంది","ంలో","ంలోని","గా","టు","డు","తో","నాడు","ని","నికి","ను","న్న","న్నాడు","న్నాయి","న్నారు","పై","మని","ము","మైన","లకు","లతో","లను","లపై","లలో","లు","లో","లోకి","లోని","ల్లో","ాను","ాన్ని","ాయి","ారు","ించారు","ించిన","ికి","ుడు","ుతో","ుని","ుల","్","్న","్‌లో"]},ur:{vowel_step:!1,passes:1,endings:["ئی","ئیں","ئے","اء","ائی","ات","اں","تا","تہ","تی","تے","را","ری","ریوں","رے","ز","نا","نی","نیوں","نے","و","وں","ِ","ٰ","ٹنگ","ں","ہ","ہوں","یا","یت","ین","ینی","یں","ے"]}}};function v(e){let s=(e??"").toLowerCase().split(/[-_]/)[0];if(s==="kok")return"gom";let a=s.length===3?"asm as ben bn guj gu hin hi kan kn kas ks mal ml mar mr nep ne ori or pan pa san sa snd sd tam ta tel te urd ur ory or npi ne ".indexOf(s+" "):-1;return a>=0&&a%7===0?"asm as ben bn guj gu hin hi kan kn kas ks mal ml mar mr nep ne ori or pan pa san sa snd sd tam ta tel te urd ur ory or npi ne ".slice(a+4,a+6):s}var o=p.min_stem,h=p.max_end,f=new Set(p.vowel_signs.map((e)=>String.fromCodePoint(e))),_=new Map(Object.entries(p.languages).map(([e,s])=>[e,{endings:new Set(s.endings),vowel:s.vowel_step,passes:s.passes}])),b=p.version,x=[..._.keys()].sort();function O(e,s,a){let n=o;if(a?.minStem!==void 0){if(n=a.minStem,!Number.isInteger(n)||n<o||h+n>=16)throw RangeError(`stem: minStem must be ${o}..${15-h}`)}let t=_.get(v(s));if(!t)return e;for(let l=0;l<t.passes;l++)e=c(e,t,n);return e}function c(e,s,a){let n=[e.length],t=e.length;while(n.length<=h+a&&t>0){let i=e.charCodeAt(--t);if(i>=56320&&i<=57343&&t>0)t--;n.push(t)}let l=t>0?1/0:n.length-1,g=e.length;for(let i=Math.min(h,l-a);i>0;i--)if(s.endings.has(e.slice(n[i]))){g=n[i],l-=i;break}if(s.vowel&&l>a&&f.has(e[g-1]))g--;return g===e.length?e:e.slice(0,g)}export{O as stem,b as RULES_VERSION,x as LANGUAGES};
@@ -39,6 +39,17 @@ export interface Deromanizer {
39
39
  word(latin: string, n?: number): string[];
40
40
  /** Every run of Latin letters written as its first native spelling; everything else kept. */
41
41
  text(text: string): string;
42
+ /**
43
+ * Is the Latin-typed word, read as `word` reads it, in the language's English list
44
+ * (an English word a typist of the language writes in English)? Only Hindi has a list:
45
+ * load it with `{ english: true }`. False for a language with no list.
46
+ */
47
+ isEnglish(word: string): boolean;
48
+ /**
49
+ * `text` for mixed text such as Hinglish: a word in the English list stays as typed
50
+ * ("kal meeting hai" → "कल meeting है"). Equals `text` for a language with no list.
51
+ */
52
+ textMixed(text: string): string;
42
53
  }
43
54
  /** The input as the training pairs were read: accents removed, lower case, a-z only. */
44
55
  export declare function clean(s: string): string;
@@ -52,6 +63,7 @@ export declare function clean(s: string): string;
52
63
  export declare function load(lang: string, mode?: Mode, opts?: {
53
64
  fetch?: Fetcher;
54
65
  base?: URL | string;
66
+ english?: boolean;
55
67
  }): Promise<Deromanizer>;
56
68
  /** Builds a Deromanizer from its files, by file name (for tests and offline use). */
57
69
  export declare function fromBytes(lang: string, mode: Mode, files: Record<string, Uint8Array>): Deromanizer;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The phonetic key's engine, shared by ./phonetic and ./phonetic-search: the
3
+ * compiler of a rules file, the normalizer, the standard engine and the key
4
+ * product. Not an entry of the package.
5
+ *
6
+ * @module
7
+ */
8
+ import rulesJson from "../phonetic/rules.json";
9
+ type Rules = Omit<typeof rulesJson, "initials" | "titles" | "initial_branches" | "brahmic" | "extra"> & {
10
+ extra: Record<string, string>;
11
+ initials?: Record<string, string[]>;
12
+ initial_branches?: {
13
+ from: number;
14
+ to: number;
15
+ also: string;
16
+ }[];
17
+ brahmic: Omit<typeof rulesJson.brahmic, "rewrite" | "rewrite_bases"> & {
18
+ rewrite?: string[][];
19
+ rewrite_bases?: string[][];
20
+ };
21
+ };
22
+ export declare function compile(rules: Rules): (word: string) => string[];
23
+ export declare const engine: (word: string) => string[];
24
+ /** The words of a name written in comma-separated parts (normalized words),
25
+ * each part without its leading titles (Shri, Smt., श्रीमती, திரு); if every
26
+ * word is a title, the last word stays (reference.py#name_parts). */
27
+ export declare function dropTitles(parts: string[][]): string[];
28
+ /** nameKeys and the search index stop here: a long Tamil name can have many key combinations. */
29
+ export declare const MAX_NAME_KEYS = 256;
30
+ export declare function normalize(word: string): string;
31
+ /** The combinations of the words' keys, one key of each word joined by sep,
32
+ * the last word changing fastest, the first MAX_NAME_KEYS only. Each step
33
+ * keeps at most MAX_NAME_KEYS prefixes, so the time is linear in the words,
34
+ * not in the product (the search index built the whole product first: 2^26
35
+ * strings for a 26-word name of two-key words). */
36
+ export declare function keyProduct(all: string[][], sep: string): string[];
37
+ export {};
@@ -28,8 +28,8 @@ type ProfileRules = {
28
28
  };
29
29
  /** Changes whenever any score changes. */
30
30
  export declare const SEARCH_VERSION: string;
31
- /** The scores measured for each use: names in a list 74, villages 72, a name
32
- * in text 80 (at most 10% of hits wrong) or 70 (20%). */
31
+ /** The scores measured for each use: names in a list 76, villages 73, a name
32
+ * in text 81 (at most 10% of hits wrong) or 71 (20%). */
33
33
  export declare const THRESHOLDS: Readonly<Record<string, number>>;
34
34
  type Sparse = [number, [number, number][]];
35
35
  type RawTable = {
@@ -96,8 +96,10 @@ export interface Search {
96
96
  }
97
97
  /** Loads one language's table (Latin queries against its script) and, for
98
98
  * native-to-native search, the tables between the scripts named in `scripts`
99
- * (e.g. ["deva", "arab", "beng"]). A missing table falls back to the fine keys. */
100
- export declare function loadSearch(lang: string, options?: {
99
+ * (e.g. ["deva", "arab", "beng"]). A missing table falls back to the fine keys.
100
+ * `lang` is a language tag ("hi", "ta-IN", "urd"); only its language counts,
101
+ * as in every indickit utility, and `Search.lang` is that code. */
102
+ export declare function loadSearch(tag: string, options?: {
101
103
  scripts?: string[];
102
104
  fetcher?: Fetcher;
103
105
  }): Promise<Search>;
@@ -10,21 +10,16 @@
10
10
  *
11
11
  * @module
12
12
  */
13
- /** @internal For ./phonetic-search: the engine compiler, the normalizer and the
14
- * search key's engine (keys of a normalized word). Not part of the API. */
15
- export declare const _internal: {
16
- compile: (r: unknown) => (word: string) => string[];
17
- normalize: (w: string) => string;
18
- engine: (word: string) => string[];
19
- };
13
+ import { MAX_NAME_KEYS } from "./phonetic-engine";
14
+ export { MAX_NAME_KEYS };
20
15
  /** The rules every key from this module was made with. */
21
16
  export declare const RULES_VERSION: string;
22
- /** NameKeys stops here: a long Tamil name can have many key combinations. */
23
- export declare const MAX_NAME_KEYS = 256;
24
17
  /** The sorted keys of one word; empty when it holds no letter the rules read. */
25
18
  export declare function keys(word: string): string[];
26
- /** A name split the way nameKeys and match split it: on spaces and
27
- * punctuation, with anything in brackets removed. */
19
+ /** A name split on spaces and punctuation, with anything in brackets removed.
20
+ * nameKeys, joinedKeys and match split this way, then drop the leading
21
+ * titles (Shri, Smt., श्रीमती, திரு) of each comma-separated part ("Bajwa,
22
+ * Sardar Partap Singh"); a name of titles only keeps its last word. */
28
23
  export declare function words(name: string): string[];
29
24
  /** The keys of a whole name, one per combination of its words' keys, words
30
25
  * separated by a space. Two names match when these share an element, so
@@ -37,6 +32,6 @@ export declare const JOINED_MIN_CLASSES: number;
37
32
  * least JOINED_MIN_CLASSES classes. A search looks them up only when
38
33
  * nameKeys find nobody; match does not use them. */
39
34
  export declare function joinedKeys(name: string): string[];
40
- /** Whether two names have the same number of words and every pair of words,
41
- * in order, shares a key. */
35
+ /** Whether two names, their leading titles dropped, have the same number of
36
+ * words and every pair of words, in order, shares a key. */
42
37
  export declare function match(a: string, b: string): boolean;
@@ -3,9 +3,10 @@
3
3
  * लक्ष्मी → lakshmi, മലൈക → malaika, پرویز → parvez.
4
4
  *
5
5
  * A ranked list: one word has several accepted spellings (Choudhury,
6
- * Chowdhury), and the first is the most likely. Two modes: "words" for
7
- * running text (the default) and "names" for fields known to hold person
8
- * names, where a lookup of known names comes first.
6
+ * Chowdhury), and the first is the most likely. Three modes: "words" for
7
+ * running text (the default); "names" for fields known to hold person
8
+ * names, where a lookup of known names comes first; and "places" for place
9
+ * names (its own tables in nine languages, the "words" tables in the others).
9
10
  *
10
11
  * The tables are learned from data and loaded per language, on demand:
11
12
  *
@@ -17,8 +18,11 @@
17
18
  *
18
19
  * @module
19
20
  */
20
- /** The tables: "words" for running text, "names" for person names. */
21
- export type Mode = "words" | "names";
21
+ /**
22
+ * The tables: "words" for running text, "names" for person names, "places" for
23
+ * place names (own tables for bn hi ml mr or sat ta te ur; the "words" tables elsewhere).
24
+ */
25
+ export type Mode = "words" | "names" | "places";
22
26
  /** Changes whenever any output changes: store it beside romanized text. */
23
27
  export declare const RULES_VERSION: string;
24
28
  /** The language codes that have tables, for one mode. */
@@ -49,7 +53,5 @@ export declare function load(lang: string, mode?: Mode, opts?: {
49
53
  }): Promise<Romanizer>;
50
54
  /** Builds a Romanizer from a language's two files (for tests and offline use). */
51
55
  export declare function fromBytes(lang: string, mode: Mode, own: Uint8Array, pool: Uint8Array): Romanizer;
52
- /** Moves every Brahmic code point to the Devanagari block by its offset (rules.json "unify"). */
53
- export declare function unify(w: string): string;
54
56
  /** @internal The model's own list for a unified word (no lookup), for the conformance test. */
55
57
  export declare function _decode(r: Romanizer, word: string, n: number): string[];
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The one key to index and to query by:
3
+ * searchKey("किताबों", "hi") === searchKey("किताब", "hi"), and
4
+ * searchKey("हिन्दी", "hi") === searchKey("हिंदी", "hi").
5
+ *
6
+ * It normalizes, stems, then folds. The order was measured on search: fold
7
+ * after stem finds 2.4 points more of the right passages in Hindi and
8
+ * changes nothing in Bengali, Telugu or Assamese; fold before stem costs
9
+ * Assamese 3.7 points. A key is for matching only: never store it as text.
10
+ *
11
+ * @module
12
+ */
13
+ /** The search key of `word` in language `lang` (a tag such as "hi", "hi-IN" or "hin"). */
14
+ export declare function searchKey(word: string, lang: string): string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Malayalam compounds for search: the first member that starts a word.
3
+ * Use it in place of the stem for Malayalam:
4
+ *
5
+ * const key = compoundKey(w) ?? stem(w, "ml");
6
+ *
7
+ * It finds compounds and some oblique forms (കേരളസർക്കാർ and കേരളത്തിലെ
8
+ * share കേരള). On held-out news it found 5.5 points more of the right
9
+ * sentences than `stem` alone, and was 2.9 points less precise. A separate
10
+ * file, so that `stem` stays small for every other language. Normalize text
11
+ * first.
12
+ *
13
+ * @module
14
+ */
15
+ /** The longest first member that starts `word` and leaves at least two code points, or null. */
16
+ export declare function compoundKey(word: string): string | null;
@@ -19,8 +19,17 @@ export declare const RULES_VERSION: string;
19
19
  /** The language codes that have a table. */
20
20
  export declare const LANGUAGES: readonly string[];
21
21
  /**
22
- * The search key of `word` in language `lang` (as bn gu hi kn ml mr ne pa
23
- * sa ta te ur). Only the tag's language counts: "ta-IN", "TA" and "tam" are
22
+ * The search key of `word` in language `lang` (any of the 22
23
+ * languages of the Eighth Schedule). Only the tag's language counts: "ta-IN", "TA" and "tam" are
24
24
  * "ta". For any other `lang`, `word` unchanged.
25
25
  */
26
- export declare function stem(word: string, lang: string): string;
26
+ export declare function stem(word: string, lang: string, options?: StemOptions): string;
27
+ /** Options for {@link stem}. */
28
+ export type StemOptions = {
29
+ /**
30
+ * The fewest code points a stem keeps (default 2, at most 9). A field of
31
+ * names wants 4: it halves the names that lose their end (करीना → कर) and
32
+ * costs 0.5–2 points of search recall.
33
+ */
34
+ minStem?: number;
35
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indickit",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Small, exact utilities for text in Indian languages: a phonetic key that matches a name across 21 Indian scripts and English, a normalizer that gives text that looks the same one encoding, a segmenter for the letters a reader sees, and a stemmer for search.",
5
5
  "license": "MIT",
6
6
  "packageManager": "bun@1.3.14",
@@ -26,6 +26,14 @@
26
26
  "types": "./dist/types/js/stem.d.ts",
27
27
  "default": "./dist/stem.js"
28
28
  },
29
+ "./search-key": {
30
+ "types": "./dist/types/js/search-key.d.ts",
31
+ "default": "./dist/search-key.js"
32
+ },
33
+ "./stem-compounds": {
34
+ "types": "./dist/types/js/stem-compounds.d.ts",
35
+ "default": "./dist/stem-compounds.js"
36
+ },
29
37
  "./romanize": {
30
38
  "types": "./dist/types/js/romanize.d.ts",
31
39
  "default": "./dist/romanize.js"
@@ -48,7 +56,7 @@
48
56
  ],
49
57
  "sideEffects": false,
50
58
  "scripts": {
51
- "build": "bun build js/phonetic.ts --outfile dist/phonetic.js --target browser --format esm --minify && bun build js/normalize.ts --outfile dist/normalize.js --target browser --format esm --minify && bun build js/segment.ts --outfile dist/segment.js --target browser --format esm --minify && bun build js/stem.ts --outfile dist/stem.js --target browser --format esm --minify && bun build js/romanize.ts --outfile dist/romanize.js --target browser --format esm --minify && bun build js/phonetic-search.ts --outfile dist/phonetic-search.js --target browser --format esm --minify && bun build js/deromanize.ts --outfile dist/deromanize.js --target browser --format esm --minify && bun build js/wellformed.ts --outfile dist/wellformed.js --target browser --format esm --minify && tsc -p tsconfig.json",
59
+ "build": "bun build js/phonetic.ts --outfile dist/phonetic.js --target browser --format esm --minify && bun build js/normalize.ts --outfile dist/normalize.js --target browser --format esm --minify && bun build js/segment.ts --outfile dist/segment.js --target browser --format esm --minify && bun build js/stem.ts --outfile dist/stem.js --target browser --format esm --minify && bun build js/stem-compounds.ts --outfile dist/stem-compounds.js --target browser --format esm --minify && bun build js/search-key.ts --outfile dist/search-key.js --target browser --format esm --minify && bun build js/romanize.ts --outfile dist/romanize.js --target browser --format esm --minify && bun build js/phonetic-search.ts --outfile dist/phonetic-search.js --target browser --format esm --minify && bun build js/deromanize.ts --outfile dist/deromanize.js --target browser --format esm --minify && bun build js/wellformed.ts --outfile dist/wellformed.js --target browser --format esm --minify && tsc -p tsconfig.json",
52
60
  "test": "bun test",
53
61
  "check-dist": "node js/check-dist.mjs"
54
62
  },