UNPKG

@orama/stemmers

Version:
1 lines 23.4 kB
{"version":3,"sources":["<anon>"],"sourcesContent":["/*\n * -----------------------------------------------------------------------------\n * GENERATED FILE - DO NOT EDIT!\n * This file has been compiled using the Snowball stemmer generator.\n * Don't edit this file directly.\n * -----------------------------------------------------------------------------\n */ \"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n language: function() {\n return language;\n },\n stemmer: function() {\n return stemmer;\n }\n});\nvar g = !0, p = !1;\nfunction C() {\n this.p = function(k) {\n this.j = k;\n this.cursor = 0;\n this.a = this.j.length;\n this.f = 0;\n this.c = this.cursor;\n this.d = this.a;\n };\n this.z = function() {\n return this.j;\n };\n this.w = function(k) {\n this.j = k.j;\n this.cursor = k.cursor;\n this.a = k.a;\n this.f = k.f;\n this.c = k.c;\n this.d = k.d;\n };\n this.i = function(k, l, h) {\n if (this.cursor >= this.a) return p;\n var c = this.j.charCodeAt(this.cursor);\n if (c > h || c < l) return p;\n c -= l;\n if (0 == (k[c >>> 3] & 1 << (c & 7))) return p;\n this.cursor++;\n return g;\n };\n this.n = function(k, l, h) {\n if (this.cursor <= this.f) return p;\n var c = this.j.charCodeAt(this.cursor - 1);\n if (c > h || c < l) return p;\n c -= l;\n if (0 == (k[c >>> 3] & 1 << (c & 7))) return p;\n this.cursor--;\n return g;\n };\n this.k = function(k, l, h) {\n if (this.cursor >= this.a) return p;\n var c = this.j.charCodeAt(this.cursor);\n if (c > h || c < l) return this.cursor++, g;\n c -= l;\n return 0 == (k[c >>> 3] & 1 << (c & 7)) ? (this.cursor++, g) : p;\n };\n this.q = function(k, l, h) {\n if (this.cursor <= this.f) return p;\n var c = this.j.charCodeAt(this.cursor - 1);\n if (c > h || c < l) return this.cursor--, g;\n c -= l;\n return 0 == (k[c >>> 3] & 1 << (c & 7)) ? (this.cursor--, g) : p;\n };\n this.m = function(k) {\n if (this.a - this.cursor < k.length || this.j.slice(this.cursor, this.cursor + k.length) != k) return p;\n this.cursor += k.length;\n return g;\n };\n this.g = function(k) {\n if (this.cursor - this.f < k.length || this.j.slice(this.cursor - k.length, this.cursor) != k) return p;\n this.cursor -= k.length;\n return g;\n };\n this.o = function(k) {\n for(var l = 0, h = k.length, c = this.cursor, a = this.a, d = 0, n = 0, v = p;;){\n var b = l + (h - l >>> 1), f = 0, q = d < n ? d : n, t = k[b], s;\n for(s = q; s < t[0].length; s++){\n if (c + q == a) {\n f = -1;\n break;\n }\n f = this.j.charCodeAt(c + q) - t[0].charCodeAt(s);\n if (0 != f) break;\n q++;\n }\n 0 > f ? (h = b, n = q) : (l = b, d = q);\n if (1 >= h - l) {\n if (0 < l) break;\n if (h == l) break;\n if (v) break;\n v = g;\n }\n }\n for(;;){\n t = k[l];\n if (d >= t[0].length) {\n this.cursor = c + t[0].length;\n if (4 > t.length) return t[2];\n l = t[3](this);\n this.cursor = c + t[0].length;\n if (l) return t[2];\n }\n l = t[1];\n if (0 > l) return 0;\n }\n };\n this.h = function(k) {\n for(var l = 0, h = k.length, c = this.cursor, a = this.f, d = 0, n = 0, v = p;;){\n var b = l + (h - l >> 1), f = 0, q = d < n ? d : n, t = k[b], s;\n for(s = t[0].length - 1 - q; 0 <= s; s--){\n if (c - q == a) {\n f = -1;\n break;\n }\n f = this.j.charCodeAt(c - 1 - q) - t[0].charCodeAt(s);\n if (0 != f) break;\n q++;\n }\n 0 > f ? (h = b, n = q) : (l = b, d = q);\n if (1 >= h - l) {\n if (0 < l) break;\n if (h == l) break;\n if (v) break;\n v = g;\n }\n }\n for(;;){\n t = k[l];\n if (d >= t[0].length) {\n this.cursor = c - t[0].length;\n if (4 > t.length) return t[2];\n l = t[3](this);\n this.cursor = c - t[0].length;\n if (l) return t[2];\n }\n l = t[1];\n if (0 > l) return 0;\n }\n };\n this.s = function(k, l, h) {\n var c = h.length - (l - k);\n this.j = this.j.slice(0, k) + h + this.j.slice(l);\n this.a += c;\n this.cursor >= l ? this.cursor += c : this.cursor > k && (this.cursor = k);\n return c;\n };\n this.t = function() {\n return 0 > this.c || this.c > this.d || this.d > this.a || this.a > this.j.length ? p : g;\n };\n this.b = function(k) {\n var l = p;\n this.t() && (this.s(this.c, this.d, k), l = g);\n return l;\n };\n this.e = function() {\n return this.b('');\n };\n this.r = function(k, l, h) {\n l = this.s(k, l, h);\n k <= this.c && (this.c += l);\n k <= this.d && (this.d += l);\n };\n this.u = function() {\n var k = '';\n this.t() && (k = this.j.slice(this.c, this.d));\n return k;\n };\n this.v = function() {\n return this.j.slice(0, this.a);\n };\n}\nfunction stem() {\n function k() {\n var c;\n if (!(l.cursor < b)) {\n var d = l.f;\n l.f = b;\n l.d = l.cursor;\n c = l.h(a);\n if (0 != c) switch(l.c = l.cursor, c){\n case 1:\n if (!l.e()) return;\n break;\n case 2:\n if (!l.b('l\\u00f6s')) return;\n break;\n case 3:\n if (!l.b('full')) return;\n }\n l.f = d;\n }\n }\n var l = new C(), h = [\n [\n 'a',\n -1,\n 1\n ],\n [\n 'arna',\n 0,\n 1\n ],\n [\n 'erna',\n 0,\n 1\n ],\n [\n 'heterna',\n 2,\n 1\n ],\n [\n 'orna',\n 0,\n 1\n ],\n [\n 'ad',\n -1,\n 1\n ],\n [\n 'e',\n -1,\n 1\n ],\n [\n 'ade',\n 6,\n 1\n ],\n [\n 'ande',\n 6,\n 1\n ],\n [\n 'arne',\n 6,\n 1\n ],\n [\n 'are',\n 6,\n 1\n ],\n [\n 'aste',\n 6,\n 1\n ],\n [\n 'en',\n -1,\n 1\n ],\n [\n 'anden',\n 12,\n 1\n ],\n [\n 'aren',\n 12,\n 1\n ],\n [\n 'heten',\n 12,\n 1\n ],\n [\n 'ern',\n -1,\n 1\n ],\n [\n 'ar',\n -1,\n 1\n ],\n [\n 'er',\n -1,\n 1\n ],\n [\n 'heter',\n 18,\n 1\n ],\n [\n 'or',\n -1,\n 1\n ],\n [\n 's',\n -1,\n 2\n ],\n [\n 'as',\n 21,\n 1\n ],\n [\n 'arnas',\n 22,\n 1\n ],\n [\n 'ernas',\n 22,\n 1\n ],\n [\n 'ornas',\n 22,\n 1\n ],\n [\n 'es',\n 21,\n 1\n ],\n [\n 'ades',\n 26,\n 1\n ],\n [\n 'andes',\n 26,\n 1\n ],\n [\n 'ens',\n 21,\n 1\n ],\n [\n 'arens',\n 29,\n 1\n ],\n [\n 'hetens',\n 29,\n 1\n ],\n [\n 'erns',\n 21,\n 1\n ],\n [\n 'at',\n -1,\n 1\n ],\n [\n 'andet',\n -1,\n 1\n ],\n [\n 'het',\n -1,\n 1\n ],\n [\n 'ast',\n -1,\n 1\n ]\n ], c = [\n [\n 'dd',\n -1,\n -1\n ],\n [\n 'gd',\n -1,\n -1\n ],\n [\n 'nn',\n -1,\n -1\n ],\n [\n 'dt',\n -1,\n -1\n ],\n [\n 'gt',\n -1,\n -1\n ],\n [\n 'kt',\n -1,\n -1\n ],\n [\n 'tt',\n -1,\n -1\n ]\n ], a = [\n [\n 'ig',\n -1,\n 1\n ],\n [\n 'lig',\n 0,\n 1\n ],\n [\n 'els',\n -1,\n 1\n ],\n [\n 'fullt',\n -1,\n 3\n ],\n [\n 'l\\u00f6st',\n -1,\n 2\n ]\n ], d = [\n 17,\n 65,\n 16,\n 1,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 24,\n 0,\n 32\n ], n = [\n 119,\n 127,\n 149\n ], v = 0, b = 0;\n this.l = function() {\n var a = l.cursor;\n a: {\n b = l.a;\n var q = l.cursor, t = l.cursor + 3;\n if (!(t > l.a)) {\n l.cursor = t;\n v = l.cursor;\n l.cursor = q;\n b: for(;;){\n q = l.cursor;\n if (l.i(d, 97, 246)) {\n l.cursor = q;\n break b;\n }\n l.cursor = q;\n if (l.cursor >= l.a) break a;\n l.cursor++;\n }\n b: for(;;){\n if (l.k(d, 97, 246)) break b;\n if (l.cursor >= l.a) break a;\n l.cursor++;\n }\n b = l.cursor;\n b < v && (b = v);\n }\n }\n l.cursor = a;\n l.f = l.cursor;\n l.cursor = l.a;\n a = l.a - l.cursor;\n if (!(l.cursor < b)) if (t = l.f, l.f = b, l.d = l.cursor, q = l.h(h), 0 == q) l.f = t;\n else switch(l.c = l.cursor, l.f = t, q){\n case 1:\n if (!l.e()) break;\n break;\n case 2:\n !l.n(n, 98, 121) || l.e();\n }\n l.cursor = l.a - a;\n a = l.a - l.cursor;\n l.cursor < b || (q = l.f, l.f = b, t = l.a - l.cursor, 0 == l.h(c) ? l.f = q : (l.cursor = l.a - t, l.d = l.cursor, l.cursor <= l.f ? l.f = q : (l.cursor--, l.c = l.cursor, l.e() && (l.f = q))));\n l.cursor = l.a - a;\n a = l.a - l.cursor;\n k();\n l.cursor = l.a - a;\n l.cursor = l.f;\n return g;\n };\n this.stemWord = function(a) {\n l.p(a);\n this.l();\n return l.j;\n };\n}\nconst stemmerInstance = new stem();\nfunction stemmer(word) {\n return stemmerInstance.stemWord(word);\n}\nconst language = 'swedish';\n"],"names":["_export","target","all","name","Object","defineProperty","enumerable","get","exports","value","language","stemmer","g","p","C","k","j","cursor","a","length","f","c","d","z","w","i","l","h","charCodeAt","n","q","m","slice","o","v","s","b","t","e","r","u","stem","stemWord","stemmerInstance","word"],"mappings":"AAMI,aAIJ,SAASA,QAAQC,CAAM,CAAEC,CAAG,EACxB,IAAI,IAAIC,KAAQD,EAAIE,OAAOC,cAAc,CAACJ,EAAQE,EAAM,CACpDG,WAAY,CAAA,EACZC,IAAKL,CAAG,CAACC,EAAK,AAClB,EACJ,CARAC,OAAOC,cAAc,CAACG,QAAS,aAAc,CACzCC,MAAO,CAAA,CACX,GAOAT,QAAQQ,QAAS,CACbE,SAAU,WACN,OAAOA,QACX,EACAC,QAAS,WACL,OAAOA,OACX,CACJ,GACA,IAAIC,EAAI,CAAC,EAAGC,EAAI,CAAC,EACjB,SAASC,IACL,IAAI,CAACD,CAAC,CAAG,SAASE,CAAC,EAC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AAC,CAAG,SAASrB,CAAC,EACf,IAAIW,EAAIb,EAER,OADA,IAAI,CAACwB,CAAC,IAAO,CAAA,IAAI,CAACF,CAAC,CAAC,IAAI,CAACd,CAAC,CAAE,IAAI,CAACC,CAAC,CAAEP,GAAIW,EAAId,CAAAA,EACrCc,CACX,EACA,IAAI,CAACY,CAAC,CAAG,WACL,OAAO,IAAI,CAACF,CAAC,CAAC,GAClB,EACA,IAAI,CAACG,CAAC,CAAG,SAASxB,CAAC,CAAEW,CAAC,CAAEC,CAAC,EACrBD,EAAI,IAAI,CAACS,CAAC,CAACpB,EAAGW,EAAGC,GACjBZ,GAAK,IAAI,CAACM,CAAC,EAAK,CAAA,IAAI,CAACA,CAAC,EAAIK,CAAAA,EAC1BX,GAAK,IAAI,CAACO,CAAC,EAAK,CAAA,IAAI,CAACA,CAAC,EAAII,CAAAA,CAC9B,EACA,IAAI,CAACc,CAAC,CAAG,WACL,IAAIzB,EAAI,GAER,OADA,IAAI,CAACsB,CAAC,IAAOtB,CAAAA,EAAI,IAAI,CAACC,CAAC,CAACgB,KAAK,CAAC,IAAI,CAACX,CAAC,CAAE,IAAI,CAACC,CAAC,CAAA,EACrCP,CACX,EACA,IAAI,CAACmB,CAAC,CAAG,WACL,OAAO,IAAI,CAAClB,CAAC,CAACgB,KAAK,CAAC,EAAG,IAAI,CAACd,CAAC,CACjC,CACJ,CACA,SAASuB,OAqBL,IAAIf,EAAI,IAAIZ,EAAKa,EAAI,CACjB,CACI,IACA,GACA,EACH,CACD,CACI,OACA,EACA,EACH,CACD,CACI,OACA,EACA,EACH,CACD,CACI,UACA,EACA,EACH,CACD,CACI,OACA,EACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,IACA,GACA,EACH,CACD,CACI,MACA,EACA,EACH,CACD,CACI,OACA,EACA,EACH,CACD,CACI,OACA,EACA,EACH,CACD,CACI,MACA,EACA,EACH,CACD,CACI,OACA,EACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,OACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,MACA,GACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,IACA,GACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,OACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,MACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,SACA,GACA,EACH,CACD,CACI,OACA,GACA,EACH,CACD,CACI,KACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,MACA,GACA,EACH,CACD,CACI,MACA,GACA,EACH,CACJ,CAAEN,EAAI,CACH,CACI,KACA,GACA,GACH,CACD,CACI,KACA,GACA,GACH,CACD,CACI,KACA,GACA,GACH,CACD,CACI,KACA,GACA,GACH,CACD,CACI,KACA,GACA,GACH,CACD,CACI,KACA,GACA,GACH,CACD,CACI,KACA,GACA,GACH,CACJ,CAAEH,EAAI,CACH,CACI,KACA,GACA,EACH,CACD,CACI,MACA,EACA,EACH,CACD,CACI,MACA,GACA,EACH,CACD,CACI,QACA,GACA,EACH,CACD,CACI,UACA,GACA,EACH,CACJ,CAAEI,EAAI,CACH,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,GACH,CAAEO,EAAI,CACH,IACA,IACA,IACH,CAAEK,EAAI,EAAGE,EAAI,CACd,CAAA,IAAI,CAACV,CAAC,CAAG,WACL,IAAIR,EAAIQ,EAAET,MAAM,CAChBC,EAAG,CACCkB,EAAIV,EAAER,CAAC,CACP,IAAIY,EAAIJ,EAAET,MAAM,CAAEoB,EAAIX,EAAET,MA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