@delali/narsil 0.3.1-next.157 → 0.3.1-next.161
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/adapters/filesystem.mjs +3 -3
- package/dist/adapters/gcs.mjs +3 -3
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +3 -3
- package/dist/browser/{chunk-N23GL72Q.mjs → chunk-4RNSFVWI.mjs} +20777 -19056
- package/dist/browser/chunk-MMHIIL5B.mjs +564 -0
- package/dist/browser/chunk-MZHQ65VI.mjs +1228 -0
- package/dist/browser/chunk-WC2DEXWU.mjs +29 -0
- package/dist/browser/{chunk-VLJQW4J6.mjs → core-leaf-TJAGWPZZ.mjs} +4674 -3102
- package/dist/{react-native/chunks/durability-config-QXVZEO7T.mjs → browser/durability-config-SGB5ZP5K.mjs} +8 -3
- package/dist/browser/embed-RF2MPGAO.mjs +222 -0
- package/dist/{react-native/chunks/geo-index-PX3BIHAH.mjs → browser/geo-index-GNHY4PUB.mjs} +190 -93
- package/dist/{react-native/chunks/module-TTEVPRCW.mjs → browser/module-362VSIGR.mjs} +1570 -275
- package/dist/browser/msgpack-leaf-44XNWSSY.mjs +302 -0
- package/dist/browser/optional-reads-XMVPG6HG.mjs +3230 -0
- package/dist/browser/optional-writes-WMZX4OEC.mjs +3196 -0
- package/dist/browser/phrase-module-22TKMXWI.mjs +616 -0
- package/dist/browser/resolve-vector-text-KI65IHMD.mjs +60 -0
- package/dist/browser/{restore-hooks-IE3GGYHG.mjs → restore-queue-S4BWOGMU.mjs} +98 -24
- package/dist/{react-native/chunks/runtime-R5E3TB3J.mjs → browser/runtime-NU6VOVH2.mjs} +61 -25
- package/dist/browser/segment-codec-leaf-A427QJUX.mjs +554 -0
- package/dist/browser/segment-merge-leaf-7BZ54JPI.mjs +1636 -0
- package/dist/browser/storage-leaf-X6CNRHJS.mjs +18221 -0
- package/dist/browser/store-leaf-AEMTAVHX.mjs +2069 -0
- package/dist/browser/{chunk-GFAZPSWK.mjs → suggestions-leaf-3Y6MR6OF.mjs} +441 -119
- package/dist/browser/worker-copies-WQCPP3TS.mjs +2750 -0
- package/dist/{capabilities-D3AoBJoF.d.ts → capabilities-BKDrry0z.d.ts} +2 -2
- package/dist/chunk-2JRERUNZ.mjs +217 -0
- package/dist/chunk-2RIS76RJ.mjs +212 -0
- package/dist/chunk-3B775F3C.mjs +252 -0
- package/dist/{chunk-24FNVRKB.mjs → chunk-3D6RZGJH.mjs} +3 -3
- package/dist/{chunk-INJYO3BU.mjs → chunk-4CAMH7FO.mjs} +1 -1
- package/dist/{chunk-U476IXKQ.mjs → chunk-4PY4JYMY.mjs} +2 -1
- package/dist/chunk-6EZW2GQL.mjs +978 -0
- package/dist/chunk-75UNINFA.mjs +271 -0
- package/dist/chunk-77AUVDQ5.mjs +7 -0
- package/dist/{chunk-JTYPJF3T.mjs → chunk-7MWYORQC.mjs} +2 -2
- package/dist/{chunk-TGP5M5R7.mjs → chunk-7T4LAYT4.mjs} +1 -1
- package/dist/{chunk-XIHUI4KB.mjs → chunk-AB27FWZM.mjs} +8 -3
- package/dist/{chunk-FUD5XSZ5.mjs → chunk-BXM7XM4G.mjs} +7 -3
- package/dist/{chunk-HJJI72X7.mjs → chunk-C7YQHCSO.mjs} +1 -1
- package/dist/{chunk-RVGRFOGN.mjs → chunk-D456ZFPQ.mjs} +2 -1
- package/dist/{chunk-KKQC526K.mjs → chunk-E2F6LZR3.mjs} +19 -21
- package/dist/{chunk-SMOOSIAW.mjs → chunk-FE3MRIBN.mjs} +104 -13
- package/dist/{chunk-KYYABCSW.mjs → chunk-FETZYCH7.mjs} +15 -1
- package/dist/{chunk-XXJZMTZT.mjs → chunk-FVZ5DB6Y.mjs} +3 -2
- package/dist/{chunk-EYD7K3H6.mjs → chunk-GF4K7IUK.mjs} +317 -120
- package/dist/chunk-GXCDWLQI.mjs +193 -0
- package/dist/{chunk-IIRIG7H5.mjs → chunk-H64YDF5M.mjs} +3 -3
- package/dist/{browser/chunk-VY5KW3HN.mjs → chunk-HOOR4CP5.mjs} +63 -7
- package/dist/chunk-IB4BYLE3.mjs +127 -0
- package/dist/{chunk-3C7MTCCI.mjs → chunk-IE3Q62QD.mjs} +2 -2
- package/dist/chunk-IH3G6SJO.mjs +40 -0
- package/dist/chunk-JV74RKCY.mjs +3041 -0
- package/dist/{chunk-ZPZ3YGXV.mjs → chunk-K67I3RF4.mjs} +261 -101
- package/dist/chunk-KLVMK3R5.mjs +47 -0
- package/dist/{chunk-5VV4R6P7.mjs → chunk-LAWIJRMJ.mjs} +4154 -2577
- package/dist/chunk-LF4GB4PO.mjs +281 -0
- package/dist/chunk-NC4QLCZC.mjs +59 -0
- package/dist/chunk-OOO54OVC.mjs +627 -0
- package/dist/chunk-OUWZKNO3.mjs +207 -0
- package/dist/{chunk-FJKKCV4D.mjs → chunk-P5YLI5ED.mjs} +343 -182
- package/dist/{chunk-4ZTHGTVX.mjs → chunk-PTTMGRG5.mjs} +9 -10
- package/dist/{react-native/chunks/chunk-DZ7H7D2C.mjs → chunk-Q3ZZH5Z7.mjs} +6 -0
- package/dist/{browser/chunk-EKMGCRSR.mjs → chunk-QBVTYY4J.mjs} +2 -9
- package/dist/{chunk-W5EB5XKI.mjs → chunk-R4CE4IVU.mjs} +341 -183
- package/dist/chunk-S2POFTLN.mjs +10 -0
- package/dist/{chunk-KJ3RTZDJ.mjs → chunk-S3BSDBF7.mjs} +10 -3
- package/dist/{chunk-4LMSZAK6.mjs → chunk-SHGN3QIF.mjs} +69 -13
- package/dist/chunk-SXIRM4MX.mjs +3549 -0
- package/dist/{chunk-TBC3XUL2.mjs → chunk-TGPKS2UM.mjs} +47 -1
- package/dist/chunk-TINW4BSH.mjs +31301 -0
- package/dist/{cold-module-VOJXMNZB.mjs → chunk-TSLV5P2J.mjs} +397 -80
- package/dist/{chunk-HHBUCIUY.mjs → chunk-TW543F33.mjs} +3 -3
- package/dist/chunk-U6B7DUQW.mjs +788 -0
- package/dist/{chunk-OQLD2BSW.mjs → chunk-V3SGPXWQ.mjs} +8 -9
- package/dist/chunk-W34VJXY7.mjs +4723 -0
- package/dist/chunk-YETKPX5M.mjs +5 -0
- package/dist/chunk-ZQ6QY42L.mjs +59 -0
- package/dist/{client-kqSMevVi.d.ts → client-CTp8RRiK.d.ts} +4 -4
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +66 -18
- package/dist/{config-B4v_Htpu.d.ts → config-PCNzWjHL.d.ts} +6 -3
- package/dist/{config-CTP01fns.d.ts → config-_WT5grSL.d.ts} +3 -3
- package/dist/core-leaf-KXFGP74A.mjs +7 -0
- package/dist/digest-leaf-KXBGKYHZ.mjs +1 -0
- package/dist/direct-executor-MKTZBR26.mjs +16 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +7 -4
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +1 -2
- package/dist/distribution/transport/grpc.mjs +7 -2
- package/dist/distribution/transport/tcp.mjs +7 -1
- package/dist/distribution.d.ts +7 -7
- package/dist/distribution.mjs +1199 -1092
- package/dist/{browser/durability-config-TIYKW6XX.mjs → durability-config-XV4XR7Y4.mjs} +7 -3
- package/dist/embed-4H7RTBVL.mjs +221 -0
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-CkPn2PWE.d.ts → engine-DBRVR_d-.d.ts} +1252 -1239
- package/dist/{browser/geo-index-OTV7VPIR.mjs → geo-index-2ZMMWWSK.mjs} +190 -93
- package/dist/{index-C4AmUnl1.d.ts → index-Ck9w5WHz.d.ts} +1 -1
- package/dist/index.browser.mjs +4 -16
- package/dist/index.d.ts +1495 -78
- package/dist/index.mjs +14 -50
- package/dist/index.react-native.mjs +11 -28
- package/dist/invalidation/filesystem.mjs +1 -2
- package/dist/languages/albanian.mjs +1 -1
- package/dist/languages/amharic.mjs +1 -1
- package/dist/languages/arabic.mjs +1 -1
- package/dist/languages/armenian.mjs +1 -1
- package/dist/languages/azerbaijani.mjs +1 -1
- package/dist/languages/bambara.mjs +1 -1
- package/dist/languages/basque.mjs +1 -1
- package/dist/languages/belarusian.mjs +1 -1
- package/dist/languages/bengali.mjs +1 -1
- package/dist/languages/bosnian.mjs +1 -1
- package/dist/languages/breton.mjs +1 -1
- package/dist/languages/bulgarian.mjs +1 -1
- package/dist/languages/burmese.mjs +1 -1
- package/dist/languages/catalan.mjs +1 -1
- package/dist/languages/chinese.mjs +1 -1
- package/dist/languages/croatian.mjs +1 -1
- package/dist/languages/czech.mjs +1 -1
- package/dist/languages/dagbani.mjs +1 -1
- package/dist/languages/danish.mjs +1 -1
- package/dist/languages/dutch.mjs +1 -1
- package/dist/languages/english.mjs +1 -1
- package/dist/languages/esperanto.mjs +1 -1
- package/dist/languages/estonian.mjs +1 -1
- package/dist/languages/ewe.mjs +1 -1
- package/dist/languages/faroese.mjs +1 -1
- package/dist/languages/fijian.mjs +1 -1
- package/dist/languages/finnish.mjs +1 -1
- package/dist/languages/french.mjs +1 -1
- package/dist/languages/ga.mjs +1 -1
- package/dist/languages/galician.mjs +1 -1
- package/dist/languages/georgian.mjs +1 -1
- package/dist/languages/german.mjs +1 -1
- package/dist/languages/greek.mjs +1 -1
- package/dist/languages/guarani.mjs +1 -1
- package/dist/languages/gujarati.mjs +1 -1
- package/dist/languages/haitian-creole.mjs +1 -1
- package/dist/languages/hausa.mjs +1 -1
- package/dist/languages/hawaiian.mjs +1 -1
- package/dist/languages/hebrew.mjs +1 -1
- package/dist/languages/hindi.mjs +1 -1
- package/dist/languages/hungarian.mjs +1 -1
- package/dist/languages/icelandic.mjs +1 -1
- package/dist/languages/igbo.mjs +1 -1
- package/dist/languages/indonesian.mjs +1 -1
- package/dist/languages/irish.mjs +1 -1
- package/dist/languages/italian.mjs +1 -1
- package/dist/languages/japanese.mjs +1 -1
- package/dist/languages/kannada.mjs +1 -1
- package/dist/languages/kazakh.mjs +1 -1
- package/dist/languages/khmer.mjs +1 -1
- package/dist/languages/kinyarwanda.mjs +1 -1
- package/dist/languages/kirundi.mjs +1 -1
- package/dist/languages/korean.mjs +1 -1
- package/dist/languages/kurmanji.mjs +1 -1
- package/dist/languages/kyrgyz.mjs +1 -1
- package/dist/languages/lao.mjs +1 -1
- package/dist/languages/latin.mjs +1 -1
- package/dist/languages/latvian.mjs +1 -1
- package/dist/languages/lingala.mjs +1 -1
- package/dist/languages/lithuanian.mjs +1 -1
- package/dist/languages/luxembourgish.mjs +1 -1
- package/dist/languages/macedonian.mjs +1 -1
- package/dist/languages/malagasy.mjs +1 -1
- package/dist/languages/malay.mjs +1 -1
- package/dist/languages/malayalam.mjs +1 -1
- package/dist/languages/maltese.mjs +1 -1
- package/dist/languages/maori.mjs +1 -1
- package/dist/languages/marathi.mjs +1 -1
- package/dist/languages/nepali.mjs +1 -1
- package/dist/languages/norwegian.mjs +1 -1
- package/dist/languages/oromo.mjs +1 -1
- package/dist/languages/persian.mjs +1 -1
- package/dist/languages/polish.mjs +1 -1
- package/dist/languages/portuguese.mjs +1 -1
- package/dist/languages/punjabi.mjs +1 -1
- package/dist/languages/romanian.mjs +1 -1
- package/dist/languages/russian.mjs +1 -1
- package/dist/languages/samoan.mjs +1 -1
- package/dist/languages/sanskrit.mjs +1 -1
- package/dist/languages/scottish-gaelic.mjs +1 -1
- package/dist/languages/serbian.mjs +1 -1
- package/dist/languages/shona.mjs +1 -1
- package/dist/languages/sinhala.mjs +1 -1
- package/dist/languages/slovak.mjs +1 -1
- package/dist/languages/slovenian.mjs +1 -1
- package/dist/languages/sorani.mjs +1 -1
- package/dist/languages/spanish.mjs +1 -1
- package/dist/languages/swahili.mjs +1 -1
- package/dist/languages/swedish.mjs +1 -1
- package/dist/languages/tagalog.mjs +1 -1
- package/dist/languages/tamil.mjs +1 -1
- package/dist/languages/tatar.mjs +1 -1
- package/dist/languages/telugu.mjs +1 -1
- package/dist/languages/thai.mjs +1 -1
- package/dist/languages/tibetan.mjs +1 -1
- package/dist/languages/tigrinya.mjs +1 -1
- package/dist/languages/tongan.mjs +1 -1
- package/dist/languages/turkish.mjs +1 -1
- package/dist/languages/twi.mjs +1 -1
- package/dist/languages/ukrainian.mjs +1 -1
- package/dist/languages/urdu.mjs +1 -1
- package/dist/languages/vietnamese.mjs +1 -1
- package/dist/languages/welsh.mjs +1 -1
- package/dist/languages/wolof.mjs +1 -1
- package/dist/languages/xhosa.mjs +1 -1
- package/dist/languages/yoruba.mjs +1 -1
- package/dist/languages/zulu.mjs +1 -1
- package/dist/{long-query-thread-QDFQSJD6.mjs → long-query-thread-JMGNGF6V.mjs} +74 -58
- package/dist/{module-N55W4Q5C.mjs → module-ZJ6ARG6V.mjs} +444 -111
- package/dist/msgpack-leaf-5WFRP6JM.mjs +9 -0
- package/dist/optional-reads-BR3BOVZW.mjs +3373 -0
- package/dist/optional-writes-DDFHYUOH.mjs +218 -0
- package/dist/{paged-partition-archive-RLRGOXDX.mjs → paged-partition-archive-G576XGVE.mjs} +29 -69
- package/dist/partial-words.browser.mjs +1649 -0
- package/dist/partial-words.mjs +15 -14
- package/dist/{chunk-CITFCZKF.mjs → pattern.browser.mjs} +153 -186
- package/dist/pattern.mjs +6 -8
- package/dist/persistence/durability/checkpoint-worker.d.ts +32 -24
- package/dist/persistence/durability/checkpoint-worker.mjs +27 -59
- package/dist/phrase-module-XK3T44VU.mjs +634 -0
- package/dist/query-actions-OMXJEC2J.mjs +118 -0
- package/dist/query-suggestions/merge-worker.mjs +18 -54
- package/dist/query-suggestions.browser.mjs +26 -227
- package/dist/query-suggestions.d.ts +2 -2
- package/dist/query-suggestions.mjs +16 -67
- package/dist/react-native/chunks/chunk-4EXKQ2IB.mjs +565 -0
- package/dist/react-native/chunks/chunk-52QD7CBJ.mjs +52 -0
- package/dist/react-native/chunks/chunk-72OKYHZL.mjs +969 -0
- package/dist/react-native/chunks/chunk-AQOWRH2C.mjs +802 -0
- package/dist/react-native/chunks/{chunk-4COWCEY7.mjs → chunk-FTQ7JNMU.mjs} +341 -180
- package/dist/react-native/chunks/chunk-G3CUQ333.mjs +42 -0
- package/dist/react-native/chunks/{chunk-EJ33LCHV.mjs → chunk-HRDMIQ63.mjs} +53 -1
- package/dist/react-native/chunks/{chunk-4AV5PPH6.mjs → chunk-IY6U6HRA.mjs} +63 -7
- package/dist/react-native/chunks/chunk-J2NQW353.mjs +212 -0
- package/dist/react-native/chunks/chunk-L4R5ITVG.mjs +29047 -0
- package/dist/react-native/chunks/{chunk-OXM66LO6.mjs → chunk-OK3WUA6N.mjs} +2 -10
- package/dist/react-native/chunks/{chunk-MVXELMJX.mjs → chunk-PVMEHBQO.mjs} +1 -1
- package/dist/{browser/chunk-SRMZXJSL.mjs → react-native/chunks/chunk-TQ26BKBH.mjs} +6 -0
- package/dist/{browser/chunk-GPPOG6PT.mjs → react-native/chunks/chunk-VUJCSQG5.mjs} +3 -1
- package/dist/react-native/chunks/{chunk-ENLMYKSX.mjs → chunk-XEGKQKLY.mjs} +5385 -3114
- package/dist/react-native/chunks/chunk-YOTP2FPE.mjs +232 -0
- package/dist/react-native/chunks/chunk-ZIU6TWXG.mjs +127 -0
- package/dist/react-native/chunks/core-leaf-5B4JXCVA.mjs +6 -0
- package/dist/react-native/chunks/digest-leaf-X6OIFDIU.mjs +1 -0
- package/dist/{durability-config-GE4U7MCZ.mjs → react-native/chunks/durability-config-3IOXIPYZ.mjs} +7 -3
- package/dist/react-native/chunks/embed-3WQ2CCR5.mjs +221 -0
- package/dist/{geo-index-MRH5JMIR.mjs → react-native/chunks/geo-index-QEYKEVPH.mjs} +190 -93
- package/dist/react-native/chunks/{chunk-CKNRFDTZ.mjs → gzip.react-native-DLO4WW27.mjs} +2 -1
- package/dist/{browser/module-TCT66FWA.mjs → react-native/chunks/module-VUA27HZZ.mjs} +1018 -540
- package/dist/react-native/chunks/msgpack-leaf-TR66ZVAX.mjs +7 -0
- package/dist/react-native/chunks/optional-reads-WDTLLHUT.mjs +3364 -0
- package/dist/react-native/chunks/optional-writes-FZV3QW34.mjs +267 -0
- package/dist/react-native/chunks/phrase-module-KCQWVXYZ.mjs +635 -0
- package/dist/react-native/chunks/resolve-vector-text-LXRYXF7M.mjs +59 -0
- package/dist/react-native/chunks/restore-queue-EI2V2I4S.mjs +179 -0
- package/dist/{browser/runtime-OTAGEFQW.mjs → react-native/chunks/runtime-BUCSAK4U.mjs} +61 -25
- package/dist/react-native/chunks/segment-codec-leaf-6ULP7H3I.mjs +12 -0
- package/dist/react-native/chunks/segment-merge-leaf-F4GQZNK6.mjs +13 -0
- package/dist/react-native/chunks/storage-leaf-OAXBU2L6.mjs +18042 -0
- package/dist/react-native/chunks/store-leaf-GY2ZZFXB.mjs +14 -0
- package/dist/react-native/chunks/{chunk-WW2X2AEI.mjs → suggestions-leaf-SQEZ4IBS.mjs} +332 -118
- package/dist/react-native/chunks/worker-copies-EEHSCFJW.mjs +2627 -0
- package/dist/react-native/partial-words.mjs +954 -35
- package/dist/react-native/pattern.mjs +238 -111
- package/dist/react-native/query-suggestions.mjs +33 -239
- package/dist/react-native/sync.mjs +95 -52
- package/dist/react-native/synonyms.mjs +256 -112
- package/dist/react.d.ts +9 -9
- package/dist/react.mjs +6 -0
- package/dist/{rerank-MQ37IYRV.mjs → rerank-Y6MWBMTT.mjs} +17 -8
- package/dist/rerankers/http.mjs +2 -2
- package/dist/resolve-vector-text-4PDRTPNQ.mjs +2 -0
- package/dist/restore-queue-KPYSRJ4A.mjs +184 -0
- package/dist/runtime-4GKUIAKV.mjs +595 -0
- package/dist/{schema-Jwt928nJ.d.ts → schema-C_7yRJLt.d.ts} +1 -1
- package/dist/segment-codec-leaf-6IFBSBPN.mjs +17 -0
- package/dist/segment-merge-leaf-VE3FUSVE.mjs +17 -0
- package/dist/server.d.ts +33 -13
- package/dist/server.mjs +81 -100
- package/dist/{browser/durability-wiring-GVZEE46O.mjs → storage-leaf-HMIIOUYN.mjs} +2334 -931
- package/dist/store-leaf-M7T7SUZJ.mjs +19 -0
- package/dist/stored-values-BWIMpiT_.d.ts +25 -0
- package/dist/suggestions-leaf-Q3Q5D6XV.mjs +53 -0
- package/dist/sync/filesystem.d.ts +3 -3
- package/dist/sync/filesystem.mjs +27 -11
- package/dist/sync/indexeddb.browser.mjs +287 -0
- package/dist/sync/indexeddb.d.ts +3 -3
- package/dist/sync/indexeddb.mjs +7 -2
- package/dist/sync.browser.mjs +88 -72
- package/dist/sync.d.ts +4 -4
- package/dist/sync.mjs +89 -59
- package/dist/{chunk-I5B7RXU7.mjs → synonyms.browser.mjs} +248 -135
- package/dist/synonyms.mjs +15 -11
- package/dist/{tasks-CoNjxbop.d.ts → tasks-B4tT4vmP.d.ts} +4 -4
- package/dist/thread-SNILJXX3.mjs +30 -0
- package/dist/{types-DPMjfOr_.d.ts → types-CTg0KaMy.d.ts} +2 -2
- package/dist/vector/search-worker.d.ts +7 -1
- package/dist/vector/search-worker.mjs +9 -13
- package/dist/worker-copies-ZLZS2CUM.mjs +2152 -0
- package/dist/workers/entry.mjs +60 -30
- package/openapi.json +66 -50
- package/package.json +233 -8
- package/dist/analysis-change-CKEMM2MC.mjs +0 -55
- package/dist/analysis-change-entry-SEDMJ6MW.mjs +0 -1
- package/dist/archive-history-E4R73RWD.mjs +0 -29
- package/dist/browser/analysis-change-ZKGJFENM.mjs +0 -942
- package/dist/browser/analysis-change-entry-5BFUVMHJ.mjs +0 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +0 -29
- package/dist/browser/chunk-25MTVDYD.mjs +0 -432
- package/dist/browser/chunk-3I27KXQD.mjs +0 -34
- package/dist/browser/chunk-3NLMB5CC.mjs +0 -217
- package/dist/browser/chunk-4RD3AFSB.mjs +0 -32
- package/dist/browser/chunk-5W3MMTLG.mjs +0 -19
- package/dist/browser/chunk-5YWB3E2W.mjs +0 -92
- package/dist/browser/chunk-7IGKGWSQ.mjs +0 -79
- package/dist/browser/chunk-AI5UI46D.mjs +0 -12
- package/dist/browser/chunk-ATEBYXP6.mjs +0 -10
- package/dist/browser/chunk-BLT4RHCJ.mjs +0 -241
- package/dist/browser/chunk-C26SPCGQ.mjs +0 -2636
- package/dist/browser/chunk-C4FJ3WDY.mjs +0 -177
- package/dist/browser/chunk-CXNTHHA7.mjs +0 -63
- package/dist/browser/chunk-DSXIBE6N.mjs +0 -78
- package/dist/browser/chunk-DUH6QUVU.mjs +0 -2374
- package/dist/browser/chunk-ELV4OZOI.mjs +0 -29
- package/dist/browser/chunk-EXQZGUQH.mjs +0 -193
- package/dist/browser/chunk-G64Q6OJF.mjs +0 -96
- package/dist/browser/chunk-HOZW3PKP.mjs +0 -9
- package/dist/browser/chunk-HUCSHDTB.mjs +0 -100
- package/dist/browser/chunk-JPTQZWJQ.mjs +0 -10
- package/dist/browser/chunk-K3IPRX6D.mjs +0 -2559
- package/dist/browser/chunk-ML7THVLJ.mjs +0 -38
- package/dist/browser/chunk-MY2XKH22.mjs +0 -40
- package/dist/browser/chunk-NLWTBAGB.mjs +0 -111
- package/dist/browser/chunk-NXQG7DRA.mjs +0 -318
- package/dist/browser/chunk-OEDCEZXJ.mjs +0 -92
- package/dist/browser/chunk-OIZS5KIX.mjs +0 -6
- package/dist/browser/chunk-RA6LSBCM.mjs +0 -43
- package/dist/browser/chunk-TK63WFXK.mjs +0 -90
- package/dist/browser/chunk-TY7L6OXO.mjs +0 -69
- package/dist/browser/chunk-U3JOQGWX.mjs +0 -19
- package/dist/browser/chunk-U4YDIBUT.mjs +0 -653
- package/dist/browser/chunk-UATIJ4KU.mjs +0 -21
- package/dist/browser/chunk-UKOWD2K5.mjs +0 -315
- package/dist/browser/chunk-UTMHUHUV.mjs +0 -150
- package/dist/browser/chunk-V43N6TZO.mjs +0 -857
- package/dist/browser/chunk-VI7BQR4U.mjs +0 -21
- package/dist/browser/chunk-WN464PTL.mjs +0 -375
- package/dist/browser/chunk-WXLBZJMT.mjs +0 -25
- package/dist/browser/chunk-X7TXYUKO.mjs +0 -86
- package/dist/browser/chunk-XAWNZ4G2.mjs +0 -151
- package/dist/browser/chunk-Y6IBAUNO.mjs +0 -561
- package/dist/browser/chunk-ZI2V4VD7.mjs +0 -21
- package/dist/browser/cold-module-YNUUDNOM.mjs +0 -761
- package/dist/browser/engine-hooks-HBVS6YM4.mjs +0 -18
- package/dist/browser/gzip-5S7ROJFJ.mjs +0 -1
- package/dist/browser/import-5ESVMFDJ.mjs +0 -20
- package/dist/browser/methods-KTQCSIN4.mjs +0 -30
- package/dist/browser/module-NDSQLPMQ.mjs +0 -25
- package/dist/browser/operations-OJ3BXS55.mjs +0 -5
- package/dist/browser/phrase-module-HAT3TLZN.mjs +0 -328
- package/dist/browser/pool-3JLET5RO.mjs +0 -297
- package/dist/browser/release-HYXPVJVS.mjs +0 -32
- package/dist/browser/restore-queue-LQBBTODR.mjs +0 -55
- package/dist/browser/retention-TY3L3BFN.mjs +0 -211
- package/dist/browser/snapshot-5FHPPCNZ.mjs +0 -965
- package/dist/browser/start-2UZTOBG5.mjs +0 -26
- package/dist/browser/sync-state-P5XG6LTQ.mjs +0 -15
- package/dist/browser/write-ULXAN5B4.mjs +0 -196
- package/dist/chunk-2NE7VCYE.mjs +0 -212
- package/dist/chunk-2ROUFMQX.mjs +0 -543
- package/dist/chunk-37CD3OKS.mjs +0 -87
- package/dist/chunk-3MXV3VHR.mjs +0 -46
- package/dist/chunk-3OH67G7R.mjs +0 -214
- package/dist/chunk-4B7JIGQD.mjs +0 -106
- package/dist/chunk-5YNRKI2C.mjs +0 -81
- package/dist/chunk-6HTGOXIK.mjs +0 -875
- package/dist/chunk-6OEGXLBX.mjs +0 -57
- package/dist/chunk-6RC4K46J.mjs +0 -86
- package/dist/chunk-7GFE3PEY.mjs +0 -40
- package/dist/chunk-7GXJUJ24.mjs +0 -49
- package/dist/chunk-7V5IUP2T.mjs +0 -63
- package/dist/chunk-A4L7YTKX.mjs +0 -458
- package/dist/chunk-BEZH7VEH.mjs +0 -23
- package/dist/chunk-BNL5OPRV.mjs +0 -634
- package/dist/chunk-BTPGQC6Z.mjs +0 -27
- package/dist/chunk-C7XQYG6U.mjs +0 -50
- package/dist/chunk-CQZXZ75V.mjs +0 -562
- package/dist/chunk-CWS55TEX.mjs +0 -242
- package/dist/chunk-CZQ33DLW.mjs +0 -78
- package/dist/chunk-EEBCDP36.mjs +0 -32
- package/dist/chunk-FB6463IN.mjs +0 -1499
- package/dist/chunk-FCJ553HS.mjs +0 -655
- package/dist/chunk-FEZVDOWX.mjs +0 -6996
- package/dist/chunk-FOCV4CBZ.mjs +0 -87
- package/dist/chunk-FQBFZAWG.mjs +0 -27
- package/dist/chunk-G6HRSGOU.mjs +0 -74
- package/dist/chunk-GES7U2PM.mjs +0 -68
- package/dist/chunk-GH4WQ22V.mjs +0 -34
- package/dist/chunk-GPWMUPCA.mjs +0 -1126
- package/dist/chunk-GQPTDQCL.mjs +0 -54
- package/dist/chunk-HJSN7UYG.mjs +0 -10
- package/dist/chunk-I54T6CQP.mjs +0 -117
- package/dist/chunk-IPN7S4KX.mjs +0 -130
- package/dist/chunk-J4IJTTEX.mjs +0 -226
- package/dist/chunk-JSV6OQ4C.mjs +0 -74
- package/dist/chunk-K4ZIGL2O.mjs +0 -290
- package/dist/chunk-KAKQ74LS.mjs +0 -53
- package/dist/chunk-KCQYFO4K.mjs +0 -62
- package/dist/chunk-KHKIRS5D.mjs +0 -113
- package/dist/chunk-KOKM4PQN.mjs +0 -52
- package/dist/chunk-KP7TYHWT.mjs +0 -92
- package/dist/chunk-KZ3NX2P7.mjs +0 -21
- package/dist/chunk-L5ORED7V.mjs +0 -25
- package/dist/chunk-LDNCLRZU.mjs +0 -218
- package/dist/chunk-LHKOSI2J.mjs +0 -58
- package/dist/chunk-LQG5G2LY.mjs +0 -39
- package/dist/chunk-MATMVH65.mjs +0 -9
- package/dist/chunk-MP7ABPTD.mjs +0 -189
- package/dist/chunk-MW6BR4QP.mjs +0 -316
- package/dist/chunk-MWD5VPN7.mjs +0 -21
- package/dist/chunk-ODYKO5TO.mjs +0 -101
- package/dist/chunk-OG7UGJ6F.mjs +0 -63
- package/dist/chunk-ORN5BLL7.mjs +0 -11
- package/dist/chunk-OYABFKTW.mjs +0 -1974
- package/dist/chunk-P5LANSH6.mjs +0 -121
- package/dist/chunk-PELHVTO7.mjs +0 -24
- package/dist/chunk-PIH5SJ4N.mjs +0 -7481
- package/dist/chunk-PSZI4O24.mjs +0 -253
- package/dist/chunk-PV2CG7EJ.mjs +0 -886
- package/dist/chunk-PWGYQXML.mjs +0 -470
- package/dist/chunk-Q2UL2TPC.mjs +0 -21
- package/dist/chunk-QHPYS427.mjs +0 -66
- package/dist/chunk-QJVOLKU6.mjs +0 -111
- package/dist/chunk-QLDABJZM.mjs +0 -20
- package/dist/chunk-QYRNLLLI.mjs +0 -99
- package/dist/chunk-RCX4WNLC.mjs +0 -151
- package/dist/chunk-RFBLQLLZ.mjs +0 -16
- package/dist/chunk-RIHIVFIQ.mjs +0 -240
- package/dist/chunk-RLOES5SX.mjs +0 -31
- package/dist/chunk-RWURUDSP.mjs +0 -2639
- package/dist/chunk-RZWWB2XR.mjs +0 -96
- package/dist/chunk-S5LN746F.mjs +0 -10
- package/dist/chunk-SOI6LTHM.mjs +0 -216
- package/dist/chunk-SQJWAIF4.mjs +0 -12
- package/dist/chunk-TDIK6NTV.mjs +0 -10
- package/dist/chunk-TQXHPFWT.mjs +0 -177
- package/dist/chunk-U55XJEIG.mjs +0 -18
- package/dist/chunk-UD5HIS4U.mjs +0 -382
- package/dist/chunk-UHICS3JI.mjs +0 -83
- package/dist/chunk-UJDJB3NE.mjs +0 -913
- package/dist/chunk-VD7J552I.mjs +0 -28
- package/dist/chunk-VSLSGASN.mjs +0 -30
- package/dist/chunk-VZ2ONHEE.mjs +0 -3715
- package/dist/chunk-W7OSSKH5.mjs +0 -1427
- package/dist/chunk-WZ7YV54N.mjs +0 -152
- package/dist/chunk-X5CV2E2B.mjs +0 -1
- package/dist/chunk-Y4WPNHMC.mjs +0 -50
- package/dist/chunk-YEKL4JBK.mjs +0 -96
- package/dist/chunk-ZXNQEW43.mjs +0 -18
- package/dist/chunk-ZYAY26KG.mjs +0 -29
- package/dist/direct-executor-V5DRIECI.mjs +0 -34
- package/dist/durability-wiring-3TD62MBI.mjs +0 -4072
- package/dist/engine-hooks-HA3SBOBR.mjs +0 -54
- package/dist/gzip-F4HMIEEQ.mjs +0 -1
- package/dist/import-GPKLTSKA.mjs +0 -56
- package/dist/methods-7IOINERF.mjs +0 -30
- package/dist/module-JYHFTVPS.mjs +0 -63
- package/dist/operations-G5EP6JPX.mjs +0 -5
- package/dist/phrase-module-XW5MKWP5.mjs +0 -330
- package/dist/pool-Y4A46T36.mjs +0 -298
- package/dist/react-native/chunks/analysis-change-QUVDNABS.mjs +0 -934
- package/dist/react-native/chunks/analysis-change-entry-OC4XASBF.mjs +0 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +0 -29
- package/dist/react-native/chunks/chunk-2PRHILX3.mjs +0 -529
- package/dist/react-native/chunks/chunk-3NQOVO3K.mjs +0 -1
- package/dist/react-native/chunks/chunk-3WI35N75.mjs +0 -226
- package/dist/react-native/chunks/chunk-4DII3ZSM.mjs +0 -73
- package/dist/react-native/chunks/chunk-4J74WHQM.mjs +0 -177
- package/dist/react-native/chunks/chunk-4NWR3NGS.mjs +0 -151
- package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +0 -17
- package/dist/react-native/chunks/chunk-5MSX5FRT.mjs +0 -858
- package/dist/react-native/chunks/chunk-6OFDUYVX.mjs +0 -92
- package/dist/react-native/chunks/chunk-6VBXNFLE.mjs +0 -9
- package/dist/react-native/chunks/chunk-6ZELFCK5.mjs +0 -315
- package/dist/react-native/chunks/chunk-AAAETEJK.mjs +0 -27
- package/dist/react-native/chunks/chunk-AM7RSBPF.mjs +0 -32
- package/dist/react-native/chunks/chunk-BITYFZSZ.mjs +0 -242
- package/dist/react-native/chunks/chunk-C5G6TJ7A.mjs +0 -140
- package/dist/react-native/chunks/chunk-CHPTFFJM.mjs +0 -43
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +0 -10
- package/dist/react-native/chunks/chunk-DMIFXZ3Q.mjs +0 -432
- package/dist/react-native/chunks/chunk-DVDX4SDR.mjs +0 -375
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +0 -12
- package/dist/react-native/chunks/chunk-F753DA54.mjs +0 -23
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +0 -40
- package/dist/react-native/chunks/chunk-FTZHMRD2.mjs +0 -18
- package/dist/react-native/chunks/chunk-HJBJBH26.mjs +0 -34
- package/dist/react-native/chunks/chunk-IAENKE2D.mjs +0 -21
- package/dist/react-native/chunks/chunk-IO2SMUQD.mjs +0 -10
- package/dist/react-native/chunks/chunk-IYNT75CE.mjs +0 -111
- package/dist/react-native/chunks/chunk-JDOEEMEF.mjs +0 -38
- package/dist/react-native/chunks/chunk-JWUCMVRK.mjs +0 -15
- package/dist/react-native/chunks/chunk-KSBYEMCB.mjs +0 -100
- package/dist/react-native/chunks/chunk-KU646XXT.mjs +0 -164
- package/dist/react-native/chunks/chunk-LU3Y3P63.mjs +0 -68
- package/dist/react-native/chunks/chunk-LVIKKAA6.mjs +0 -93
- package/dist/react-native/chunks/chunk-LZSLNSUN.mjs +0 -193
- package/dist/react-native/chunks/chunk-MJDQU5MW.mjs +0 -1225
- package/dist/react-native/chunks/chunk-NNE4VDMM.mjs +0 -8
- package/dist/react-native/chunks/chunk-NVVRSRX5.mjs +0 -78
- package/dist/react-native/chunks/chunk-OCSLSH27.mjs +0 -22723
- package/dist/react-native/chunks/chunk-PB2YXVQW.mjs +0 -29
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +0 -79
- package/dist/react-native/chunks/chunk-PSWKQVVT.mjs +0 -9
- package/dist/react-native/chunks/chunk-RDWG33MM.mjs +0 -79
- package/dist/react-native/chunks/chunk-SK2PWYDH.mjs +0 -654
- package/dist/react-native/chunks/chunk-SUPXRTMD.mjs +0 -96
- package/dist/react-native/chunks/chunk-TORU2OHQ.mjs +0 -218
- package/dist/react-native/chunks/chunk-U4KSKA4Z.mjs +0 -23
- package/dist/react-native/chunks/chunk-UNUFZ2QY.mjs +0 -68
- package/dist/react-native/chunks/chunk-WBYQRHDY.mjs +0 -86
- package/dist/react-native/chunks/chunk-WVWJNUMN.mjs +0 -2562
- package/dist/react-native/chunks/chunk-YH7QY657.mjs +0 -288
- package/dist/react-native/chunks/chunk-YZW4CHM6.mjs +0 -562
- package/dist/react-native/chunks/chunk-ZNZ6CPAZ.mjs +0 -562
- package/dist/react-native/chunks/chunk-ZVQMBF2H.mjs +0 -63
- package/dist/react-native/chunks/chunk-ZWAIN4GG.mjs +0 -2636
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +0 -92
- package/dist/react-native/chunks/cold-module-N6KFNNZA.mjs +0 -773
- package/dist/react-native/chunks/durability-wiring-RN64S2TL.mjs +0 -4984
- package/dist/react-native/chunks/engine-hooks-CWA5CKCA.mjs +0 -30
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +0 -3
- package/dist/react-native/chunks/import-5UAWBRJP.mjs +0 -32
- package/dist/react-native/chunks/methods-6W5U4C3H.mjs +0 -30
- package/dist/react-native/chunks/module-6RP4ZCBW.mjs +0 -37
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +0 -5
- package/dist/react-native/chunks/phrase-module-QK22HSQ2.mjs +0 -329
- package/dist/react-native/chunks/pool-JR3NJCAF.mjs +0 -297
- package/dist/react-native/chunks/release-2SIHZWDO.mjs +0 -32
- package/dist/react-native/chunks/restore-hooks-ENFMDTWC.mjs +0 -127
- package/dist/react-native/chunks/restore-queue-4R6AASE5.mjs +0 -55
- package/dist/react-native/chunks/retention-5GTFT3GR.mjs +0 -223
- package/dist/react-native/chunks/snapshot-5LGPQXFS.mjs +0 -976
- package/dist/react-native/chunks/start-ZQJVZ5DN.mjs +0 -38
- package/dist/react-native/chunks/sync-state-PASCIHHT.mjs +0 -15
- package/dist/react-native/chunks/write-6BRYIIZ7.mjs +0 -208
- package/dist/release-SMR4WJD4.mjs +0 -32
- package/dist/restore-hooks-HXLIEB4A.mjs +0 -153
- package/dist/restore-queue-LZH7LMLR.mjs +0 -55
- package/dist/retention-3K7ARGAG.mjs +0 -66
- package/dist/runtime-COIUORCN.mjs +0 -177
- package/dist/snapshot-O7ICP7NJ.mjs +0 -783
- package/dist/start-S4PFP6RS.mjs +0 -66
- package/dist/sync-state-ZWHLAFLE.mjs +0 -15
- package/dist/thread-YLJ3ZPQ3.mjs +0 -50
- package/dist/write-2OBJGLFS.mjs +0 -233
- /package/dist/browser/{chunk-M3MQE2X7.mjs → digest-leaf-64IPRPZD.mjs} +0 -0
- /package/dist/browser/{chunk-JNOAKDUM.mjs → gzip-JF3S6PPT.mjs} +0 -0
- /package/dist/{chunk-ZXNNR73R.mjs → gzip-2UCZW2MM.mjs} +0 -0
|
@@ -1,1225 +0,0 @@
|
|
|
1
|
-
import { NarsilError, ErrorCodes } from './chunk-DZ7H7D2C.mjs';
|
|
2
|
-
|
|
3
|
-
// src/analysis/registry.ts
|
|
4
|
-
var tokenizers = /* @__PURE__ */ new Map();
|
|
5
|
-
var stopWordSets = /* @__PURE__ */ new Map();
|
|
6
|
-
function requireName(name, kind) {
|
|
7
|
-
if (typeof name !== "string" || name.trim().length === 0) {
|
|
8
|
-
throw new NarsilError(ErrorCodes.CONFIG_INVALID, `A registered ${kind} needs a non-empty name`, { name });
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function registerTokenizer(name, tokenizer) {
|
|
12
|
-
requireName(name, "tokenizer");
|
|
13
|
-
if (typeof tokenizer?.tokenize !== "function") {
|
|
14
|
-
throw new NarsilError(ErrorCodes.CONFIG_INVALID, `Tokenizer "${name}" needs a tokenize method`, { tokenizer: name });
|
|
15
|
-
}
|
|
16
|
-
tokenizers.set(name, tokenizer);
|
|
17
|
-
}
|
|
18
|
-
function registerStopWords(name, stopWords2) {
|
|
19
|
-
requireName(name, "stop word set");
|
|
20
|
-
if (!(stopWords2 instanceof Set) && typeof stopWords2 !== "function") {
|
|
21
|
-
throw new NarsilError(
|
|
22
|
-
ErrorCodes.CONFIG_INVALID,
|
|
23
|
-
`Stop word set "${name}" needs a Set of words or a function returning one`,
|
|
24
|
-
{ stopWords: name }
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
stopWordSets.set(name, stopWords2);
|
|
28
|
-
}
|
|
29
|
-
function hasTokenizer(name) {
|
|
30
|
-
return tokenizers.has(name);
|
|
31
|
-
}
|
|
32
|
-
function hasStopWords(name) {
|
|
33
|
-
return stopWordSets.has(name);
|
|
34
|
-
}
|
|
35
|
-
function getTokenizer(name) {
|
|
36
|
-
const tokenizer = tokenizers.get(name);
|
|
37
|
-
if (!tokenizer) {
|
|
38
|
-
throw new NarsilError(ErrorCodes.CONFIG_INVALID, `Tokenizer "${name}" is not registered on this engine`, {
|
|
39
|
-
tokenizer: name,
|
|
40
|
-
available: [...tokenizers.keys()]
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return tokenizer;
|
|
44
|
-
}
|
|
45
|
-
function getStopWords(name) {
|
|
46
|
-
const stopWords2 = stopWordSets.get(name);
|
|
47
|
-
if (!stopWords2) {
|
|
48
|
-
throw new NarsilError(ErrorCodes.CONFIG_INVALID, `Stop word set "${name}" is not registered on this engine`, {
|
|
49
|
-
stopWords: name,
|
|
50
|
-
available: [...stopWordSets.keys()]
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
return stopWords2;
|
|
54
|
-
}
|
|
55
|
-
function holdsPositionsOutOfOrder(entries) {
|
|
56
|
-
for (let index = 1; index < entries.length; index++) {
|
|
57
|
-
if (entries[index].position < entries[index - 1].position) return true;
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
function inPositionOrder(tokenizer) {
|
|
62
|
-
return {
|
|
63
|
-
tokenize(text) {
|
|
64
|
-
const entries = tokenizer.tokenize(text);
|
|
65
|
-
if (!holdsPositionsOutOfOrder(entries)) return entries;
|
|
66
|
-
return [...entries].sort((first, second) => first.position - second.position);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function resolveIndexAnalysis(config) {
|
|
71
|
-
const tokenizer = typeof config.tokenizer === "string" ? getTokenizer(config.tokenizer) : config.tokenizer;
|
|
72
|
-
return {
|
|
73
|
-
stopWords: typeof config.stopWords === "string" ? getStopWords(config.stopWords) : config.stopWords,
|
|
74
|
-
customTokenizer: tokenizer === void 0 ? void 0 : inPositionOrder(tokenizer)
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// src/languages/snowball/base-stemmer.ts
|
|
79
|
-
var BaseStemmer = class {
|
|
80
|
-
current = "";
|
|
81
|
-
c = 0;
|
|
82
|
-
limit = 0;
|
|
83
|
-
limit_backward = 0;
|
|
84
|
-
bra = 0;
|
|
85
|
-
ket = 0;
|
|
86
|
-
af = 0;
|
|
87
|
-
setCurrent(value) {
|
|
88
|
-
this.current = value;
|
|
89
|
-
this.c = 0;
|
|
90
|
-
this.limit = this.current.length;
|
|
91
|
-
this.limit_backward = 0;
|
|
92
|
-
this.bra = 0;
|
|
93
|
-
this.ket = 0;
|
|
94
|
-
}
|
|
95
|
-
getCurrent() {
|
|
96
|
-
return this.current;
|
|
97
|
-
}
|
|
98
|
-
in_grouping(s, min, max) {
|
|
99
|
-
if (this.c >= this.limit) return false;
|
|
100
|
-
let ch = this.current.charCodeAt(this.c);
|
|
101
|
-
if (ch > max || ch < min) return false;
|
|
102
|
-
ch -= min;
|
|
103
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) === 0) return false;
|
|
104
|
-
this.c++;
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
go_in_grouping(s, min, max) {
|
|
108
|
-
while (this.c < this.limit) {
|
|
109
|
-
let ch = this.current.charCodeAt(this.c);
|
|
110
|
-
if (ch > max || ch < min) return true;
|
|
111
|
-
ch -= min;
|
|
112
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) === 0) return true;
|
|
113
|
-
this.c++;
|
|
114
|
-
}
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
in_grouping_b(s, min, max) {
|
|
118
|
-
if (this.c <= this.limit_backward) return false;
|
|
119
|
-
let ch = this.current.charCodeAt(this.c - 1);
|
|
120
|
-
if (ch > max || ch < min) return false;
|
|
121
|
-
ch -= min;
|
|
122
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) === 0) return false;
|
|
123
|
-
this.c--;
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
go_in_grouping_b(s, min, max) {
|
|
127
|
-
while (this.c > this.limit_backward) {
|
|
128
|
-
let ch = this.current.charCodeAt(this.c - 1);
|
|
129
|
-
if (ch > max || ch < min) return true;
|
|
130
|
-
ch -= min;
|
|
131
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) === 0) return true;
|
|
132
|
-
this.c--;
|
|
133
|
-
}
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
out_grouping(s, min, max) {
|
|
137
|
-
if (this.c >= this.limit) return false;
|
|
138
|
-
let ch = this.current.charCodeAt(this.c);
|
|
139
|
-
if (ch > max || ch < min) {
|
|
140
|
-
this.c++;
|
|
141
|
-
return true;
|
|
142
|
-
}
|
|
143
|
-
ch -= min;
|
|
144
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) === 0) {
|
|
145
|
-
this.c++;
|
|
146
|
-
return true;
|
|
147
|
-
}
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
go_out_grouping(s, min, max) {
|
|
151
|
-
while (this.c < this.limit) {
|
|
152
|
-
let ch = this.current.charCodeAt(this.c);
|
|
153
|
-
if (ch <= max && ch >= min) {
|
|
154
|
-
ch -= min;
|
|
155
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) !== 0) return true;
|
|
156
|
-
}
|
|
157
|
-
this.c++;
|
|
158
|
-
}
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
out_grouping_b(s, min, max) {
|
|
162
|
-
if (this.c <= this.limit_backward) return false;
|
|
163
|
-
let ch = this.current.charCodeAt(this.c - 1);
|
|
164
|
-
if (ch > max || ch < min) {
|
|
165
|
-
this.c--;
|
|
166
|
-
return true;
|
|
167
|
-
}
|
|
168
|
-
ch -= min;
|
|
169
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) === 0) {
|
|
170
|
-
this.c--;
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
return false;
|
|
174
|
-
}
|
|
175
|
-
go_out_grouping_b(s, min, max) {
|
|
176
|
-
while (this.c > this.limit_backward) {
|
|
177
|
-
let ch = this.current.charCodeAt(this.c - 1);
|
|
178
|
-
if (ch <= max && ch >= min) {
|
|
179
|
-
ch -= min;
|
|
180
|
-
if ((s[ch >>> 3] & 1 << (ch & 7)) !== 0) return true;
|
|
181
|
-
}
|
|
182
|
-
this.c--;
|
|
183
|
-
}
|
|
184
|
-
return false;
|
|
185
|
-
}
|
|
186
|
-
eq_s(s) {
|
|
187
|
-
if (this.limit - this.c < s.length) return false;
|
|
188
|
-
if (!this.current.startsWith(s, this.c)) return false;
|
|
189
|
-
this.c += s.length;
|
|
190
|
-
return true;
|
|
191
|
-
}
|
|
192
|
-
eq_s_b(s) {
|
|
193
|
-
if (this.c - this.limit_backward < s.length) return false;
|
|
194
|
-
if (!this.current.endsWith(s, this.c)) return false;
|
|
195
|
-
this.c -= s.length;
|
|
196
|
-
return true;
|
|
197
|
-
}
|
|
198
|
-
find_among(v, call_among_func) {
|
|
199
|
-
let i = 0;
|
|
200
|
-
let j = v.length;
|
|
201
|
-
const c = this.c;
|
|
202
|
-
const l = this.limit;
|
|
203
|
-
let common_i = 0;
|
|
204
|
-
let common_j = 0;
|
|
205
|
-
let first_key_inspected = false;
|
|
206
|
-
while (true) {
|
|
207
|
-
const k = i + (j - i >>> 1);
|
|
208
|
-
let diff = 0;
|
|
209
|
-
let common = common_i < common_j ? common_i : common_j;
|
|
210
|
-
const s = v[k][0];
|
|
211
|
-
for (let i2 = common; i2 < s.length; i2++) {
|
|
212
|
-
if (c + common === l) {
|
|
213
|
-
diff = -1;
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
diff = this.current.charCodeAt(c + common) - s.charCodeAt(i2);
|
|
217
|
-
if (diff !== 0) break;
|
|
218
|
-
common++;
|
|
219
|
-
}
|
|
220
|
-
if (diff < 0) {
|
|
221
|
-
j = k;
|
|
222
|
-
common_j = common;
|
|
223
|
-
} else {
|
|
224
|
-
i = k;
|
|
225
|
-
common_i = common;
|
|
226
|
-
}
|
|
227
|
-
if (j - i <= 1) {
|
|
228
|
-
if (i > 0) break;
|
|
229
|
-
if (j === i) break;
|
|
230
|
-
if (first_key_inspected) break;
|
|
231
|
-
first_key_inspected = true;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
while (true) {
|
|
235
|
-
const w = v[i];
|
|
236
|
-
const len = w[0].length;
|
|
237
|
-
if (common_i >= len) {
|
|
238
|
-
this.c = c + len;
|
|
239
|
-
const action = w[3];
|
|
240
|
-
if (action === void 0) return w[1];
|
|
241
|
-
this.af = action;
|
|
242
|
-
if (call_among_func?.call(this) === true) {
|
|
243
|
-
this.c = c + len;
|
|
244
|
-
return w[1];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
const back = w[2];
|
|
248
|
-
if (back === void 0 || back === 0) return 0;
|
|
249
|
-
i -= back;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
find_among_b(v, call_among_func) {
|
|
253
|
-
let i = 0;
|
|
254
|
-
let j = v.length;
|
|
255
|
-
const c = this.c;
|
|
256
|
-
const lb = this.limit_backward;
|
|
257
|
-
let common_i = 0;
|
|
258
|
-
let common_j = 0;
|
|
259
|
-
let first_key_inspected = false;
|
|
260
|
-
while (true) {
|
|
261
|
-
const k = i + (j - i >> 1);
|
|
262
|
-
let diff = 0;
|
|
263
|
-
let common = common_i < common_j ? common_i : common_j;
|
|
264
|
-
const s = v[k][0];
|
|
265
|
-
for (let i2 = s.length - 1 - common; i2 >= 0; i2--) {
|
|
266
|
-
if (c - common === lb) {
|
|
267
|
-
diff = -1;
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
diff = this.current.charCodeAt(c - 1 - common) - s.charCodeAt(i2);
|
|
271
|
-
if (diff !== 0) break;
|
|
272
|
-
common++;
|
|
273
|
-
}
|
|
274
|
-
if (diff < 0) {
|
|
275
|
-
j = k;
|
|
276
|
-
common_j = common;
|
|
277
|
-
} else {
|
|
278
|
-
i = k;
|
|
279
|
-
common_i = common;
|
|
280
|
-
}
|
|
281
|
-
if (j - i <= 1) {
|
|
282
|
-
if (i > 0) break;
|
|
283
|
-
if (j === i) break;
|
|
284
|
-
if (first_key_inspected) break;
|
|
285
|
-
first_key_inspected = true;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
while (true) {
|
|
289
|
-
const w = v[i];
|
|
290
|
-
const len = w[0].length;
|
|
291
|
-
if (common_i >= len) {
|
|
292
|
-
this.c = c - len;
|
|
293
|
-
const action = w[3];
|
|
294
|
-
if (action === void 0) return w[1];
|
|
295
|
-
this.af = action;
|
|
296
|
-
if (call_among_func?.call(this) === true) {
|
|
297
|
-
this.c = c - len;
|
|
298
|
-
return w[1];
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
const back = w[2];
|
|
302
|
-
if (back === void 0 || back === 0) return 0;
|
|
303
|
-
i -= back;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
replace_s(c_bra, c_ket, s) {
|
|
307
|
-
const adjustment = s.length - (c_ket - c_bra);
|
|
308
|
-
this.current = this.current.slice(0, c_bra) + s + this.current.slice(c_ket);
|
|
309
|
-
this.limit += adjustment;
|
|
310
|
-
if (this.c >= c_ket) this.c += adjustment;
|
|
311
|
-
else if (this.c > c_bra) this.c = c_bra;
|
|
312
|
-
return adjustment;
|
|
313
|
-
}
|
|
314
|
-
slice_from(s) {
|
|
315
|
-
this.replace_s(this.bra, this.ket, s);
|
|
316
|
-
this.ket = this.bra + s.length;
|
|
317
|
-
}
|
|
318
|
-
slice_del() {
|
|
319
|
-
this.slice_from("");
|
|
320
|
-
}
|
|
321
|
-
insert(c_bra, c_ket, s) {
|
|
322
|
-
const adjustment = this.replace_s(c_bra, c_ket, s);
|
|
323
|
-
if (c_bra <= this.bra) this.bra += adjustment;
|
|
324
|
-
if (c_bra <= this.ket) this.ket += adjustment;
|
|
325
|
-
}
|
|
326
|
-
slice_to() {
|
|
327
|
-
return this.current.slice(this.bra, this.ket);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
// src/languages/snowball/english.ts
|
|
332
|
-
var a_0 = [
|
|
333
|
-
["arsen", -1],
|
|
334
|
-
["commun", -1],
|
|
335
|
-
["emerg", -1],
|
|
336
|
-
["gener", -1],
|
|
337
|
-
["inter", -1],
|
|
338
|
-
["later", -1],
|
|
339
|
-
["organ", -1],
|
|
340
|
-
["past", -1],
|
|
341
|
-
["univers", -1]
|
|
342
|
-
];
|
|
343
|
-
var a_1 = [
|
|
344
|
-
["'", 1],
|
|
345
|
-
["'s'", 1, 1],
|
|
346
|
-
["'s", 1]
|
|
347
|
-
];
|
|
348
|
-
var a_2 = [
|
|
349
|
-
["ied", 2],
|
|
350
|
-
["s", 3],
|
|
351
|
-
["ies", 2, 1],
|
|
352
|
-
["sses", 1, 2],
|
|
353
|
-
["ss", -1, 3],
|
|
354
|
-
["us", -1, 4]
|
|
355
|
-
];
|
|
356
|
-
var a_3 = [
|
|
357
|
-
["succ", 1],
|
|
358
|
-
["proc", 1],
|
|
359
|
-
["exc", 1]
|
|
360
|
-
];
|
|
361
|
-
var a_4 = [
|
|
362
|
-
["even", 2],
|
|
363
|
-
["cann", 2],
|
|
364
|
-
["inn", 2],
|
|
365
|
-
["earr", 2],
|
|
366
|
-
["herr", 2],
|
|
367
|
-
["out", 2],
|
|
368
|
-
["y", 1]
|
|
369
|
-
];
|
|
370
|
-
var a_5 = [
|
|
371
|
-
["", -1],
|
|
372
|
-
["ed", 2, 1],
|
|
373
|
-
["eed", 1, 1],
|
|
374
|
-
["ing", 3, 3],
|
|
375
|
-
["edly", 2, 4],
|
|
376
|
-
["eedly", 1, 1],
|
|
377
|
-
["ingly", 2, 6]
|
|
378
|
-
];
|
|
379
|
-
var a_6 = [
|
|
380
|
-
["", 3],
|
|
381
|
-
["bb", 2, 1],
|
|
382
|
-
["dd", 2, 2],
|
|
383
|
-
["ff", 2, 3],
|
|
384
|
-
["gg", 2, 4],
|
|
385
|
-
["bl", 1, 5],
|
|
386
|
-
["mm", 2, 6],
|
|
387
|
-
["nn", 2, 7],
|
|
388
|
-
["pp", 2, 8],
|
|
389
|
-
["rr", 2, 9],
|
|
390
|
-
["at", 1, 10],
|
|
391
|
-
["tt", 2, 11],
|
|
392
|
-
["iz", 1, 12]
|
|
393
|
-
];
|
|
394
|
-
var a_7 = [
|
|
395
|
-
["anci", 3],
|
|
396
|
-
["enci", 2],
|
|
397
|
-
["ogi", 14],
|
|
398
|
-
["li", 16],
|
|
399
|
-
["bli", 12, 1],
|
|
400
|
-
["abli", 4, 1],
|
|
401
|
-
["alli", 8, 3],
|
|
402
|
-
["fulli", 9, 4],
|
|
403
|
-
["lessli", 15, 5],
|
|
404
|
-
["ousli", 10, 6],
|
|
405
|
-
["entli", 5, 7],
|
|
406
|
-
["aliti", 8],
|
|
407
|
-
["biliti", 12],
|
|
408
|
-
["iviti", 11],
|
|
409
|
-
["tional", 1],
|
|
410
|
-
["ational", 7, 1],
|
|
411
|
-
["alism", 8],
|
|
412
|
-
["ation", 7],
|
|
413
|
-
["ization", 6, 1],
|
|
414
|
-
["izer", 6],
|
|
415
|
-
["ator", 7],
|
|
416
|
-
["iveness", 11],
|
|
417
|
-
["fulness", 9],
|
|
418
|
-
["ousness", 10],
|
|
419
|
-
["ogist", 13]
|
|
420
|
-
];
|
|
421
|
-
var a_8 = [
|
|
422
|
-
["icate", 4],
|
|
423
|
-
["ative", 6],
|
|
424
|
-
["alize", 3],
|
|
425
|
-
["iciti", 4],
|
|
426
|
-
["ical", 4],
|
|
427
|
-
["tional", 1],
|
|
428
|
-
["ational", 2, 1],
|
|
429
|
-
["ful", 5],
|
|
430
|
-
["ness", 5]
|
|
431
|
-
];
|
|
432
|
-
var a_9 = [
|
|
433
|
-
["ic", 1],
|
|
434
|
-
["ance", 1],
|
|
435
|
-
["ence", 1],
|
|
436
|
-
["able", 1],
|
|
437
|
-
["ible", 1],
|
|
438
|
-
["ate", 1],
|
|
439
|
-
["ive", 1],
|
|
440
|
-
["ize", 1],
|
|
441
|
-
["iti", 1],
|
|
442
|
-
["al", 1],
|
|
443
|
-
["ism", 1],
|
|
444
|
-
["ion", 2],
|
|
445
|
-
["er", 1],
|
|
446
|
-
["ous", 1],
|
|
447
|
-
["ant", 1],
|
|
448
|
-
["ent", 1],
|
|
449
|
-
["ment", 1, 1],
|
|
450
|
-
["ement", 1, 1]
|
|
451
|
-
];
|
|
452
|
-
var a_10 = [
|
|
453
|
-
["e", 1],
|
|
454
|
-
["l", 2]
|
|
455
|
-
];
|
|
456
|
-
var a_11 = [
|
|
457
|
-
["andes", -1],
|
|
458
|
-
["atlas", -1],
|
|
459
|
-
["bias", -1],
|
|
460
|
-
["cosmos", -1],
|
|
461
|
-
["early", 6],
|
|
462
|
-
["gently", 4],
|
|
463
|
-
["howe", -1],
|
|
464
|
-
["idly", 3],
|
|
465
|
-
["news", -1],
|
|
466
|
-
["only", 7],
|
|
467
|
-
["singly", 8],
|
|
468
|
-
["skies", 2],
|
|
469
|
-
["skis", 1],
|
|
470
|
-
["sky", -1],
|
|
471
|
-
["ugly", 5]
|
|
472
|
-
];
|
|
473
|
-
var as_11 = ["ski", "sky", "idl", "gentl", "ugli", "earli", "onli", "singl"];
|
|
474
|
-
var g_aeo = [17, 64];
|
|
475
|
-
var g_v = [17, 65, 16, 1];
|
|
476
|
-
var g_v_WXY = [1, 17, 65, 208, 1];
|
|
477
|
-
var g_valid_LI = [55, 141, 2];
|
|
478
|
-
var EnglishStemmer = class extends BaseStemmer {
|
|
479
|
-
#r_shortv() {
|
|
480
|
-
lab0: {
|
|
481
|
-
const v_1 = this.limit - this.c;
|
|
482
|
-
lab1: {
|
|
483
|
-
if (!this.out_grouping_b(g_v_WXY, 89, 121)) break lab1;
|
|
484
|
-
if (!this.in_grouping_b(g_v, 97, 121)) break lab1;
|
|
485
|
-
if (!this.out_grouping_b(g_v, 97, 121)) break lab1;
|
|
486
|
-
break lab0;
|
|
487
|
-
}
|
|
488
|
-
this.c = this.limit - v_1;
|
|
489
|
-
lab2: {
|
|
490
|
-
if (!this.out_grouping_b(g_v, 97, 121)) break lab2;
|
|
491
|
-
if (!this.in_grouping_b(g_v, 97, 121)) break lab2;
|
|
492
|
-
if (
|
|
493
|
-
/**@type {boolean}*/
|
|
494
|
-
this.c > this.limit_backward
|
|
495
|
-
) break lab2;
|
|
496
|
-
break lab0;
|
|
497
|
-
}
|
|
498
|
-
this.c = this.limit - v_1;
|
|
499
|
-
if (!this.eq_s_b("past")) return false;
|
|
500
|
-
}
|
|
501
|
-
return true;
|
|
502
|
-
}
|
|
503
|
-
#stem() {
|
|
504
|
-
let a;
|
|
505
|
-
let B_Y_found;
|
|
506
|
-
let I_p2;
|
|
507
|
-
let I_p1;
|
|
508
|
-
lab0: {
|
|
509
|
-
const v_1 = this.c;
|
|
510
|
-
lab1: {
|
|
511
|
-
this.bra = this.c;
|
|
512
|
-
a = this.find_among(a_11);
|
|
513
|
-
if (a === 0) break lab1;
|
|
514
|
-
this.ket = this.c;
|
|
515
|
-
if (
|
|
516
|
-
/**@type {boolean}*/
|
|
517
|
-
this.c < this.limit
|
|
518
|
-
) break lab1;
|
|
519
|
-
if (a > 0) {
|
|
520
|
-
this.slice_from(as_11[a - 1]);
|
|
521
|
-
}
|
|
522
|
-
break lab0;
|
|
523
|
-
}
|
|
524
|
-
this.c = v_1;
|
|
525
|
-
lab2: {
|
|
526
|
-
lab3: {
|
|
527
|
-
if (this.c + 3 > this.limit) break lab3;
|
|
528
|
-
this.c += 3;
|
|
529
|
-
break lab2;
|
|
530
|
-
}
|
|
531
|
-
break lab0;
|
|
532
|
-
}
|
|
533
|
-
this.c = v_1;
|
|
534
|
-
{
|
|
535
|
-
B_Y_found = false;
|
|
536
|
-
const v_2 = this.c;
|
|
537
|
-
lab5: {
|
|
538
|
-
this.bra = this.c;
|
|
539
|
-
if (!this.eq_s("'")) break lab5;
|
|
540
|
-
this.ket = this.c;
|
|
541
|
-
this.slice_del();
|
|
542
|
-
}
|
|
543
|
-
this.c = v_2;
|
|
544
|
-
const v_3 = this.c;
|
|
545
|
-
lab6: {
|
|
546
|
-
this.bra = this.c;
|
|
547
|
-
if (!this.eq_s("y")) break lab6;
|
|
548
|
-
this.ket = this.c;
|
|
549
|
-
this.slice_from("Y");
|
|
550
|
-
B_Y_found = true;
|
|
551
|
-
}
|
|
552
|
-
this.c = v_3;
|
|
553
|
-
const v_4 = this.c;
|
|
554
|
-
while (true) {
|
|
555
|
-
const v_5 = this.c;
|
|
556
|
-
lab8: {
|
|
557
|
-
while (true) {
|
|
558
|
-
const v_6 = this.c;
|
|
559
|
-
lab10: {
|
|
560
|
-
if (!this.in_grouping(g_v, 97, 121)) break lab10;
|
|
561
|
-
this.bra = this.c;
|
|
562
|
-
if (!this.eq_s("y")) break lab10;
|
|
563
|
-
this.ket = this.c;
|
|
564
|
-
this.c = v_6;
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
this.c = v_6;
|
|
568
|
-
if (this.c >= this.limit) break lab8;
|
|
569
|
-
this.c++;
|
|
570
|
-
}
|
|
571
|
-
this.slice_from("Y");
|
|
572
|
-
B_Y_found = true;
|
|
573
|
-
continue;
|
|
574
|
-
}
|
|
575
|
-
this.c = v_5;
|
|
576
|
-
break;
|
|
577
|
-
}
|
|
578
|
-
this.c = v_4;
|
|
579
|
-
}
|
|
580
|
-
{
|
|
581
|
-
I_p1 = this.limit;
|
|
582
|
-
I_p2 = this.limit;
|
|
583
|
-
const v_7 = this.c;
|
|
584
|
-
lab12: {
|
|
585
|
-
lab13: {
|
|
586
|
-
const v_8 = this.c;
|
|
587
|
-
lab14: {
|
|
588
|
-
if (this.find_among(a_0) === 0) break lab14;
|
|
589
|
-
break lab13;
|
|
590
|
-
}
|
|
591
|
-
this.c = v_8;
|
|
592
|
-
if (!this.go_out_grouping(g_v, 97, 121)) break lab12;
|
|
593
|
-
this.c++;
|
|
594
|
-
if (!this.go_in_grouping(g_v, 97, 121)) break lab12;
|
|
595
|
-
this.c++;
|
|
596
|
-
}
|
|
597
|
-
I_p1 = this.c;
|
|
598
|
-
if (!this.go_out_grouping(g_v, 97, 121)) break lab12;
|
|
599
|
-
this.c++;
|
|
600
|
-
if (!this.go_in_grouping(g_v, 97, 121)) break lab12;
|
|
601
|
-
this.c++;
|
|
602
|
-
I_p2 = this.c;
|
|
603
|
-
}
|
|
604
|
-
this.c = v_7;
|
|
605
|
-
}
|
|
606
|
-
this.limit_backward = this.c;
|
|
607
|
-
this.c = this.limit;
|
|
608
|
-
const v_9 = this.limit - this.c;
|
|
609
|
-
lab15: {
|
|
610
|
-
const v_10 = this.limit - this.c;
|
|
611
|
-
lab16: {
|
|
612
|
-
this.ket = this.c;
|
|
613
|
-
if (this.find_among_b(a_1) === 0) {
|
|
614
|
-
this.c = this.limit - v_10;
|
|
615
|
-
break lab16;
|
|
616
|
-
}
|
|
617
|
-
this.bra = this.c;
|
|
618
|
-
this.slice_del();
|
|
619
|
-
}
|
|
620
|
-
this.ket = this.c;
|
|
621
|
-
a = this.find_among_b(a_2);
|
|
622
|
-
if (a === 0) break lab15;
|
|
623
|
-
this.bra = this.c;
|
|
624
|
-
switch (a) {
|
|
625
|
-
case 1: {
|
|
626
|
-
this.slice_from("ss");
|
|
627
|
-
break;
|
|
628
|
-
}
|
|
629
|
-
case 2: {
|
|
630
|
-
lab17: {
|
|
631
|
-
const v_11 = this.limit - this.c;
|
|
632
|
-
lab18: {
|
|
633
|
-
if (this.c - 2 < this.limit_backward) break lab18;
|
|
634
|
-
this.c -= 2;
|
|
635
|
-
this.slice_from("i");
|
|
636
|
-
break lab17;
|
|
637
|
-
}
|
|
638
|
-
this.c = this.limit - v_11;
|
|
639
|
-
this.slice_from("ie");
|
|
640
|
-
}
|
|
641
|
-
break;
|
|
642
|
-
}
|
|
643
|
-
case 3: {
|
|
644
|
-
if (this.c <= this.limit_backward) break lab15;
|
|
645
|
-
this.c--;
|
|
646
|
-
if (!this.go_out_grouping_b(g_v, 97, 121)) break lab15;
|
|
647
|
-
this.c--;
|
|
648
|
-
this.slice_del();
|
|
649
|
-
break;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
this.c = this.limit - v_9;
|
|
654
|
-
const v_12 = this.limit - this.c;
|
|
655
|
-
lab19: {
|
|
656
|
-
this.ket = this.c;
|
|
657
|
-
a = this.find_among_b(a_5);
|
|
658
|
-
this.bra = this.c;
|
|
659
|
-
lab20: {
|
|
660
|
-
const v_13 = this.limit - this.c;
|
|
661
|
-
lab21: {
|
|
662
|
-
switch (a) {
|
|
663
|
-
case 1: {
|
|
664
|
-
const v_14 = this.limit - this.c;
|
|
665
|
-
lab22: {
|
|
666
|
-
if (
|
|
667
|
-
/**@type {boolean}*/
|
|
668
|
-
I_p1 > this.c
|
|
669
|
-
) break lab22;
|
|
670
|
-
lab23: {
|
|
671
|
-
const v_15 = this.limit - this.c;
|
|
672
|
-
lab24: {
|
|
673
|
-
if (this.find_among_b(a_3) === 0) break lab24;
|
|
674
|
-
if (
|
|
675
|
-
/**@type {boolean}*/
|
|
676
|
-
this.c > this.limit_backward
|
|
677
|
-
) break lab24;
|
|
678
|
-
break lab23;
|
|
679
|
-
}
|
|
680
|
-
this.c = this.limit - v_15;
|
|
681
|
-
this.slice_from("ee");
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
this.c = this.limit - v_14;
|
|
685
|
-
break;
|
|
686
|
-
}
|
|
687
|
-
case 2: {
|
|
688
|
-
break lab21;
|
|
689
|
-
}
|
|
690
|
-
case 3: {
|
|
691
|
-
a = this.find_among_b(a_4);
|
|
692
|
-
if (a === 0) break lab21;
|
|
693
|
-
switch (a) {
|
|
694
|
-
case 1: {
|
|
695
|
-
const v_16 = this.limit - this.c;
|
|
696
|
-
if (!this.out_grouping_b(g_v, 97, 121)) break lab21;
|
|
697
|
-
if (
|
|
698
|
-
/**@type {boolean}*/
|
|
699
|
-
this.c > this.limit_backward
|
|
700
|
-
) break lab21;
|
|
701
|
-
this.c = this.limit - v_16;
|
|
702
|
-
this.bra = this.c;
|
|
703
|
-
this.slice_from("ie");
|
|
704
|
-
break;
|
|
705
|
-
}
|
|
706
|
-
case 2: {
|
|
707
|
-
if (
|
|
708
|
-
/**@type {boolean}*/
|
|
709
|
-
this.c > this.limit_backward
|
|
710
|
-
) break lab21;
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
break;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
break lab20;
|
|
718
|
-
}
|
|
719
|
-
this.c = this.limit - v_13;
|
|
720
|
-
const v_17 = this.limit - this.c;
|
|
721
|
-
if (!this.go_out_grouping_b(g_v, 97, 121)) break lab19;
|
|
722
|
-
this.c--;
|
|
723
|
-
this.c = this.limit - v_17;
|
|
724
|
-
this.slice_del();
|
|
725
|
-
this.ket = this.c;
|
|
726
|
-
this.bra = this.c;
|
|
727
|
-
const v_18 = this.limit - this.c;
|
|
728
|
-
a = this.find_among_b(a_6);
|
|
729
|
-
switch (a) {
|
|
730
|
-
case 1: {
|
|
731
|
-
this.slice_from("e");
|
|
732
|
-
break lab19;
|
|
733
|
-
}
|
|
734
|
-
case 2: {
|
|
735
|
-
{
|
|
736
|
-
const v_19 = this.limit - this.c;
|
|
737
|
-
lab25: {
|
|
738
|
-
if (!this.in_grouping_b(g_aeo, 97, 111)) break lab25;
|
|
739
|
-
if (
|
|
740
|
-
/**@type {boolean}*/
|
|
741
|
-
this.c > this.limit_backward
|
|
742
|
-
) break lab25;
|
|
743
|
-
break lab19;
|
|
744
|
-
}
|
|
745
|
-
this.c = this.limit - v_19;
|
|
746
|
-
}
|
|
747
|
-
break;
|
|
748
|
-
}
|
|
749
|
-
case 3: {
|
|
750
|
-
if (
|
|
751
|
-
/**@type {boolean}*/
|
|
752
|
-
this.c !== I_p1
|
|
753
|
-
) break lab19;
|
|
754
|
-
const v_20 = this.limit - this.c;
|
|
755
|
-
if (!this.#r_shortv()) break lab19;
|
|
756
|
-
this.c = this.limit - v_20;
|
|
757
|
-
this.slice_from("e");
|
|
758
|
-
break lab19;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
this.c = this.limit - v_18;
|
|
762
|
-
this.ket = this.c;
|
|
763
|
-
if (this.c <= this.limit_backward) break lab19;
|
|
764
|
-
this.c--;
|
|
765
|
-
this.bra = this.c;
|
|
766
|
-
this.slice_del();
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
this.c = this.limit - v_12;
|
|
770
|
-
const v_21 = this.limit - this.c;
|
|
771
|
-
lab26: {
|
|
772
|
-
this.ket = this.c;
|
|
773
|
-
lab27: {
|
|
774
|
-
lab28: {
|
|
775
|
-
if (!this.eq_s_b("y")) break lab28;
|
|
776
|
-
break lab27;
|
|
777
|
-
}
|
|
778
|
-
if (!this.eq_s_b("Y")) break lab26;
|
|
779
|
-
}
|
|
780
|
-
this.bra = this.c;
|
|
781
|
-
if (!this.out_grouping_b(g_v, 97, 121)) break lab26;
|
|
782
|
-
if (
|
|
783
|
-
/**@type {boolean}*/
|
|
784
|
-
this.c <= this.limit_backward
|
|
785
|
-
) break lab26;
|
|
786
|
-
this.slice_from("i");
|
|
787
|
-
}
|
|
788
|
-
this.c = this.limit - v_21;
|
|
789
|
-
const v_22 = this.limit - this.c;
|
|
790
|
-
lab29: {
|
|
791
|
-
this.ket = this.c;
|
|
792
|
-
a = this.find_among_b(a_7);
|
|
793
|
-
if (a === 0) break lab29;
|
|
794
|
-
this.bra = this.c;
|
|
795
|
-
if (
|
|
796
|
-
/**@type {boolean}*/
|
|
797
|
-
I_p1 > this.c
|
|
798
|
-
) break lab29;
|
|
799
|
-
switch (a) {
|
|
800
|
-
case 1: {
|
|
801
|
-
this.slice_from("tion");
|
|
802
|
-
break;
|
|
803
|
-
}
|
|
804
|
-
case 2: {
|
|
805
|
-
this.slice_from("ence");
|
|
806
|
-
break;
|
|
807
|
-
}
|
|
808
|
-
case 3: {
|
|
809
|
-
this.slice_from("ance");
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
case 4: {
|
|
813
|
-
this.slice_from("able");
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
case 5: {
|
|
817
|
-
this.slice_from("ent");
|
|
818
|
-
break;
|
|
819
|
-
}
|
|
820
|
-
case 6: {
|
|
821
|
-
this.slice_from("ize");
|
|
822
|
-
break;
|
|
823
|
-
}
|
|
824
|
-
case 7: {
|
|
825
|
-
this.slice_from("ate");
|
|
826
|
-
break;
|
|
827
|
-
}
|
|
828
|
-
case 8: {
|
|
829
|
-
this.slice_from("al");
|
|
830
|
-
break;
|
|
831
|
-
}
|
|
832
|
-
case 9: {
|
|
833
|
-
this.slice_from("ful");
|
|
834
|
-
break;
|
|
835
|
-
}
|
|
836
|
-
case 10: {
|
|
837
|
-
this.slice_from("ous");
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
case 11: {
|
|
841
|
-
this.slice_from("ive");
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
case 12: {
|
|
845
|
-
this.slice_from("ble");
|
|
846
|
-
break;
|
|
847
|
-
}
|
|
848
|
-
case 13: {
|
|
849
|
-
this.slice_from("og");
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
852
|
-
case 14: {
|
|
853
|
-
if (!this.eq_s_b("l")) break lab29;
|
|
854
|
-
this.slice_from("og");
|
|
855
|
-
break;
|
|
856
|
-
}
|
|
857
|
-
case 15: {
|
|
858
|
-
this.slice_from("less");
|
|
859
|
-
break;
|
|
860
|
-
}
|
|
861
|
-
case 16: {
|
|
862
|
-
if (!this.in_grouping_b(g_valid_LI, 99, 116)) break lab29;
|
|
863
|
-
this.slice_del();
|
|
864
|
-
break;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
this.c = this.limit - v_22;
|
|
869
|
-
const v_23 = this.limit - this.c;
|
|
870
|
-
lab30: {
|
|
871
|
-
this.ket = this.c;
|
|
872
|
-
a = this.find_among_b(a_8);
|
|
873
|
-
if (a === 0) break lab30;
|
|
874
|
-
this.bra = this.c;
|
|
875
|
-
if (
|
|
876
|
-
/**@type {boolean}*/
|
|
877
|
-
I_p1 > this.c
|
|
878
|
-
) break lab30;
|
|
879
|
-
switch (a) {
|
|
880
|
-
case 1: {
|
|
881
|
-
this.slice_from("tion");
|
|
882
|
-
break;
|
|
883
|
-
}
|
|
884
|
-
case 2: {
|
|
885
|
-
this.slice_from("ate");
|
|
886
|
-
break;
|
|
887
|
-
}
|
|
888
|
-
case 3: {
|
|
889
|
-
this.slice_from("al");
|
|
890
|
-
break;
|
|
891
|
-
}
|
|
892
|
-
case 4: {
|
|
893
|
-
this.slice_from("ic");
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
case 5: {
|
|
897
|
-
this.slice_del();
|
|
898
|
-
break;
|
|
899
|
-
}
|
|
900
|
-
case 6: {
|
|
901
|
-
if (
|
|
902
|
-
/**@type {boolean}*/
|
|
903
|
-
I_p2 > this.c
|
|
904
|
-
) break lab30;
|
|
905
|
-
this.slice_del();
|
|
906
|
-
break;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
this.c = this.limit - v_23;
|
|
911
|
-
const v_24 = this.limit - this.c;
|
|
912
|
-
lab31: {
|
|
913
|
-
this.ket = this.c;
|
|
914
|
-
a = this.find_among_b(a_9);
|
|
915
|
-
if (a === 0) break lab31;
|
|
916
|
-
this.bra = this.c;
|
|
917
|
-
if (
|
|
918
|
-
/**@type {boolean}*/
|
|
919
|
-
I_p2 > this.c
|
|
920
|
-
) break lab31;
|
|
921
|
-
switch (a) {
|
|
922
|
-
case 1: {
|
|
923
|
-
this.slice_del();
|
|
924
|
-
break;
|
|
925
|
-
}
|
|
926
|
-
case 2: {
|
|
927
|
-
lab32: {
|
|
928
|
-
lab33: {
|
|
929
|
-
if (!this.eq_s_b("s")) break lab33;
|
|
930
|
-
break lab32;
|
|
931
|
-
}
|
|
932
|
-
if (!this.eq_s_b("t")) break lab31;
|
|
933
|
-
}
|
|
934
|
-
this.slice_del();
|
|
935
|
-
break;
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
this.c = this.limit - v_24;
|
|
940
|
-
const v_25 = this.limit - this.c;
|
|
941
|
-
lab34: {
|
|
942
|
-
this.ket = this.c;
|
|
943
|
-
a = this.find_among_b(a_10);
|
|
944
|
-
if (a === 0) break lab34;
|
|
945
|
-
this.bra = this.c;
|
|
946
|
-
switch (a) {
|
|
947
|
-
case 1: {
|
|
948
|
-
lab35: {
|
|
949
|
-
lab36: {
|
|
950
|
-
if (
|
|
951
|
-
/**@type {boolean}*/
|
|
952
|
-
I_p2 > this.c
|
|
953
|
-
) break lab36;
|
|
954
|
-
break lab35;
|
|
955
|
-
}
|
|
956
|
-
if (
|
|
957
|
-
/**@type {boolean}*/
|
|
958
|
-
I_p1 > this.c
|
|
959
|
-
) break lab34;
|
|
960
|
-
{
|
|
961
|
-
const v_26 = this.limit - this.c;
|
|
962
|
-
lab37: {
|
|
963
|
-
if (!this.#r_shortv()) break lab37;
|
|
964
|
-
break lab34;
|
|
965
|
-
}
|
|
966
|
-
this.c = this.limit - v_26;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
this.slice_del();
|
|
970
|
-
break;
|
|
971
|
-
}
|
|
972
|
-
case 2: {
|
|
973
|
-
if (
|
|
974
|
-
/**@type {boolean}*/
|
|
975
|
-
I_p2 > this.c
|
|
976
|
-
) break lab34;
|
|
977
|
-
if (!this.eq_s_b("l")) break lab34;
|
|
978
|
-
this.slice_del();
|
|
979
|
-
break;
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
this.c = this.limit - v_25;
|
|
984
|
-
this.c = this.limit_backward;
|
|
985
|
-
const v_27 = this.c;
|
|
986
|
-
lab38: {
|
|
987
|
-
if (!B_Y_found) break lab38;
|
|
988
|
-
while (true) {
|
|
989
|
-
const v_28 = this.c;
|
|
990
|
-
lab39: {
|
|
991
|
-
while (true) {
|
|
992
|
-
const v_29 = this.c;
|
|
993
|
-
lab41: {
|
|
994
|
-
this.bra = this.c;
|
|
995
|
-
if (!this.eq_s("Y")) break lab41;
|
|
996
|
-
this.ket = this.c;
|
|
997
|
-
this.c = v_29;
|
|
998
|
-
break;
|
|
999
|
-
}
|
|
1000
|
-
this.c = v_29;
|
|
1001
|
-
if (this.c >= this.limit) break lab39;
|
|
1002
|
-
this.c++;
|
|
1003
|
-
}
|
|
1004
|
-
this.slice_from("y");
|
|
1005
|
-
continue;
|
|
1006
|
-
}
|
|
1007
|
-
this.c = v_28;
|
|
1008
|
-
break;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
this.c = v_27;
|
|
1012
|
-
}
|
|
1013
|
-
return true;
|
|
1014
|
-
}
|
|
1015
|
-
stem(input) {
|
|
1016
|
-
this.setCurrent(input);
|
|
1017
|
-
this.#stem();
|
|
1018
|
-
return this.getCurrent();
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
var shared = new EnglishStemmer();
|
|
1022
|
-
function stem(token) {
|
|
1023
|
-
return shared.stem(token);
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
// src/languages/english.ts
|
|
1027
|
-
var stopWords = /* @__PURE__ */ new Set([
|
|
1028
|
-
"a",
|
|
1029
|
-
"an",
|
|
1030
|
-
"the",
|
|
1031
|
-
"i",
|
|
1032
|
-
"me",
|
|
1033
|
-
"my",
|
|
1034
|
-
"myself",
|
|
1035
|
-
"we",
|
|
1036
|
-
"us",
|
|
1037
|
-
"our",
|
|
1038
|
-
"ours",
|
|
1039
|
-
"ourselves",
|
|
1040
|
-
"you",
|
|
1041
|
-
"your",
|
|
1042
|
-
"yours",
|
|
1043
|
-
"yourself",
|
|
1044
|
-
"yourselves",
|
|
1045
|
-
"he",
|
|
1046
|
-
"him",
|
|
1047
|
-
"his",
|
|
1048
|
-
"himself",
|
|
1049
|
-
"she",
|
|
1050
|
-
"her",
|
|
1051
|
-
"hers",
|
|
1052
|
-
"herself",
|
|
1053
|
-
"it",
|
|
1054
|
-
"its",
|
|
1055
|
-
"itself",
|
|
1056
|
-
"they",
|
|
1057
|
-
"them",
|
|
1058
|
-
"their",
|
|
1059
|
-
"theirs",
|
|
1060
|
-
"themselves",
|
|
1061
|
-
"what",
|
|
1062
|
-
"which",
|
|
1063
|
-
"who",
|
|
1064
|
-
"whom",
|
|
1065
|
-
"this",
|
|
1066
|
-
"that",
|
|
1067
|
-
"these",
|
|
1068
|
-
"those",
|
|
1069
|
-
"am",
|
|
1070
|
-
"is",
|
|
1071
|
-
"are",
|
|
1072
|
-
"was",
|
|
1073
|
-
"were",
|
|
1074
|
-
"be",
|
|
1075
|
-
"been",
|
|
1076
|
-
"being",
|
|
1077
|
-
"have",
|
|
1078
|
-
"has",
|
|
1079
|
-
"had",
|
|
1080
|
-
"having",
|
|
1081
|
-
"do",
|
|
1082
|
-
"does",
|
|
1083
|
-
"did",
|
|
1084
|
-
"doing",
|
|
1085
|
-
"will",
|
|
1086
|
-
"would",
|
|
1087
|
-
"shall",
|
|
1088
|
-
"should",
|
|
1089
|
-
"can",
|
|
1090
|
-
"could",
|
|
1091
|
-
"may",
|
|
1092
|
-
"might",
|
|
1093
|
-
"must",
|
|
1094
|
-
"ought",
|
|
1095
|
-
"i'm",
|
|
1096
|
-
"you're",
|
|
1097
|
-
"we're",
|
|
1098
|
-
"they're",
|
|
1099
|
-
"i've",
|
|
1100
|
-
"you've",
|
|
1101
|
-
"we've",
|
|
1102
|
-
"they've",
|
|
1103
|
-
"i'd",
|
|
1104
|
-
"you'd",
|
|
1105
|
-
"he'd",
|
|
1106
|
-
"she'd",
|
|
1107
|
-
"we'd",
|
|
1108
|
-
"they'd",
|
|
1109
|
-
"i'll",
|
|
1110
|
-
"you'll",
|
|
1111
|
-
"he'll",
|
|
1112
|
-
"she'll",
|
|
1113
|
-
"we'll",
|
|
1114
|
-
"they'll",
|
|
1115
|
-
"isn't",
|
|
1116
|
-
"aren't",
|
|
1117
|
-
"wasn't",
|
|
1118
|
-
"weren't",
|
|
1119
|
-
"hasn't",
|
|
1120
|
-
"haven't",
|
|
1121
|
-
"hadn't",
|
|
1122
|
-
"doesn't",
|
|
1123
|
-
"don't",
|
|
1124
|
-
"didn't",
|
|
1125
|
-
"won't",
|
|
1126
|
-
"wouldn't",
|
|
1127
|
-
"shan't",
|
|
1128
|
-
"shouldn't",
|
|
1129
|
-
"can't",
|
|
1130
|
-
"cannot",
|
|
1131
|
-
"couldn't",
|
|
1132
|
-
"mustn't",
|
|
1133
|
-
"and",
|
|
1134
|
-
"but",
|
|
1135
|
-
"if",
|
|
1136
|
-
"or",
|
|
1137
|
-
"because",
|
|
1138
|
-
"as",
|
|
1139
|
-
"until",
|
|
1140
|
-
"while",
|
|
1141
|
-
"of",
|
|
1142
|
-
"at",
|
|
1143
|
-
"by",
|
|
1144
|
-
"for",
|
|
1145
|
-
"with",
|
|
1146
|
-
"about",
|
|
1147
|
-
"against",
|
|
1148
|
-
"between",
|
|
1149
|
-
"into",
|
|
1150
|
-
"through",
|
|
1151
|
-
"during",
|
|
1152
|
-
"before",
|
|
1153
|
-
"after",
|
|
1154
|
-
"above",
|
|
1155
|
-
"below",
|
|
1156
|
-
"to",
|
|
1157
|
-
"from",
|
|
1158
|
-
"up",
|
|
1159
|
-
"down",
|
|
1160
|
-
"in",
|
|
1161
|
-
"out",
|
|
1162
|
-
"on",
|
|
1163
|
-
"off",
|
|
1164
|
-
"over",
|
|
1165
|
-
"under",
|
|
1166
|
-
"again",
|
|
1167
|
-
"further",
|
|
1168
|
-
"then",
|
|
1169
|
-
"once",
|
|
1170
|
-
"here",
|
|
1171
|
-
"there",
|
|
1172
|
-
"when",
|
|
1173
|
-
"where",
|
|
1174
|
-
"why",
|
|
1175
|
-
"how",
|
|
1176
|
-
"all",
|
|
1177
|
-
"any",
|
|
1178
|
-
"both",
|
|
1179
|
-
"each",
|
|
1180
|
-
"few",
|
|
1181
|
-
"more",
|
|
1182
|
-
"most",
|
|
1183
|
-
"other",
|
|
1184
|
-
"some",
|
|
1185
|
-
"such",
|
|
1186
|
-
"no",
|
|
1187
|
-
"nor",
|
|
1188
|
-
"not",
|
|
1189
|
-
"only",
|
|
1190
|
-
"own",
|
|
1191
|
-
"same",
|
|
1192
|
-
"so",
|
|
1193
|
-
"than",
|
|
1194
|
-
"too",
|
|
1195
|
-
"very"
|
|
1196
|
-
]);
|
|
1197
|
-
var english = {
|
|
1198
|
-
name: "english",
|
|
1199
|
-
revision: "ebae3448ae674b59",
|
|
1200
|
-
stemmer: stem,
|
|
1201
|
-
stopWords,
|
|
1202
|
-
tokenizer: {
|
|
1203
|
-
splitPattern: /[^\p{L}\p{M}\p{N}_']+/u,
|
|
1204
|
-
stripPossessive: true
|
|
1205
|
-
}
|
|
1206
|
-
};
|
|
1207
|
-
|
|
1208
|
-
// src/languages/registry.ts
|
|
1209
|
-
var languages = /* @__PURE__ */ new Map();
|
|
1210
|
-
languages.set("english", english);
|
|
1211
|
-
function registerLanguage(module) {
|
|
1212
|
-
languages.set(module.name, module);
|
|
1213
|
-
}
|
|
1214
|
-
function getLanguage(name) {
|
|
1215
|
-
const lang = languages.get(name);
|
|
1216
|
-
if (!lang) {
|
|
1217
|
-
throw new NarsilError(ErrorCodes.LANGUAGE_NOT_SUPPORTED, `Language "${name}" is not registered`, { language: name });
|
|
1218
|
-
}
|
|
1219
|
-
return lang;
|
|
1220
|
-
}
|
|
1221
|
-
function hasLanguage(name) {
|
|
1222
|
-
return languages.has(name);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
export { getLanguage, getStopWords, getTokenizer, hasLanguage, hasStopWords, hasTokenizer, registerLanguage, registerStopWords, registerTokenizer, resolveIndexAnalysis };
|