2020-04-27 20:08:31 +02:00
/ * !
* Lunr languages , ` Italian ` language
* https : //github.com/MihaiValentin/lunr-languages
*
* Copyright 2014 , Mihai Valentin
* http : //www.mozilla.org/MPL/
* /
/ * !
* based on
* Snowball JavaScript Library v0 . 3
* http : //code.google.com/p/urim/
* http : //snowball.tartarus.org/
*
* Copyright 2010 , Oleg Mazko
* http : //www.mozilla.org/MPL/
* /
/ * *
* export the module via AMD , CommonJS or as a browser global
* Export code from https : //github.com/umdjs/umd/blob/master/returnExports.js
* /
2020-05-18 11:35:33 +02:00
2020-04-27 20:08:31 +02:00
( function ( root , factory ) {
if ( typeof define === 'function' && define . amd ) {
// AMD. Register as an anonymous module.
define ( factory )
} else if ( typeof exports === 'object' ) {
/ * *
* Node . Does not work with strict CommonJS , but
* only CommonJS - like environments that support module . exports ,
* like Node .
* /
module . exports = factory ( )
} else {
// Browser globals (root is window)
factory ( ) ( root . lunr ) ;
}
} ( this , function ( ) {
/ * *
* Just return a value to define the module export .
* This example returns an object , but the module
* can return a function as the exported value .
* /
return function ( lunr ) {
/* throw error if lunr is not yet included */
if ( 'undefined' === typeof lunr ) {
throw new Error ( 'Lunr is not present. Please include / require Lunr before this script.' ) ;
}
/* throw error if lunr stemmer support is not yet included */
if ( 'undefined' === typeof lunr . stemmerSupport ) {
throw new Error ( 'Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.' ) ;
}
/* register specific locale function */
lunr . it = function ( ) {
this . pipeline . reset ( ) ;
this . pipeline . add (
lunr . it . trimmer ,
lunr . it . stopWordFilter ,
lunr . it . stemmer
) ;
// for lunr version 2
// this is necessary so that every searched word is also stemmed before
// in lunr <= 1 this is not needed, as it is done using the normal pipeline
if ( this . searchPipeline ) {
this . searchPipeline . reset ( ) ;
this . searchPipeline . add ( lunr . it . stemmer )
}
} ;
/* lunr trimmer function */
lunr . it . wordCharacters = "A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFF\u2071\u207F\u2090-\u209C\u212A\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB64\uFB00-\uFB06\uFF21-\uFF3A\uFF41-\uFF5A" ;
lunr . it . trimmer = lunr . trimmerSupport . generateTrimmer ( lunr . it . wordCharacters ) ;
lunr . Pipeline . registerFunction ( lunr . it . trimmer , 'trimmer-it' ) ;
/* lunr stemmer function */
lunr . it . stemmer = ( function ( ) {
/* create the wrapped stemmer object */
var Among = lunr . stemmerSupport . Among ,
SnowballProgram = lunr . stemmerSupport . SnowballProgram ,
st = new function ItalianStemmer ( ) {
var a _0 = [ new Among ( "" , - 1 , 7 ) , new Among ( "qu" , 0 , 6 ) ,
new Among ( "\u00E1" , 0 , 1 ) , new Among ( "\u00E9" , 0 , 2 ) ,
new Among ( "\u00ED" , 0 , 3 ) , new Among ( "\u00F3" , 0 , 4 ) ,
new Among ( "\u00FA" , 0 , 5 )
] ,
a _1 = [ new Among ( "" , - 1 , 3 ) ,
new Among ( "I" , 0 , 1 ) , new Among ( "U" , 0 , 2 )
] ,
a _2 = [
new Among ( "la" , - 1 , - 1 ) , new Among ( "cela" , 0 , - 1 ) ,
new Among ( "gliela" , 0 , - 1 ) , new Among ( "mela" , 0 , - 1 ) ,
new Among ( "tela" , 0 , - 1 ) , new Among ( "vela" , 0 , - 1 ) ,
new Among ( "le" , - 1 , - 1 ) , new Among ( "cele" , 6 , - 1 ) ,
new Among ( "gliele" , 6 , - 1 ) , new Among ( "mele" , 6 , - 1 ) ,
new Among ( "tele" , 6 , - 1 ) , new Among ( "vele" , 6 , - 1 ) ,
new Among ( "ne" , - 1 , - 1 ) , new Among ( "cene" , 12 , - 1 ) ,
new Among ( "gliene" , 12 , - 1 ) , new Among ( "mene" , 12 , - 1 ) ,
new Among ( "sene" , 12 , - 1 ) , new Among ( "tene" , 12 , - 1 ) ,
new Among ( "vene" , 12 , - 1 ) , new Among ( "ci" , - 1 , - 1 ) ,
new Among ( "li" , - 1 , - 1 ) , new Among ( "celi" , 20 , - 1 ) ,
new Among ( "glieli" , 20 , - 1 ) , new Among ( "meli" , 20 , - 1 ) ,
new Among ( "teli" , 20 , - 1 ) , new Among ( "veli" , 20 , - 1 ) ,
new Among ( "gli" , 20 , - 1 ) , new Among ( "mi" , - 1 , - 1 ) ,
new Among ( "si" , - 1 , - 1 ) , new Among ( "ti" , - 1 , - 1 ) ,
new Among ( "vi" , - 1 , - 1 ) , new Among ( "lo" , - 1 , - 1 ) ,
new Among ( "celo" , 31 , - 1 ) , new Among ( "glielo" , 31 , - 1 ) ,
new Among ( "melo" , 31 , - 1 ) , new Among ( "telo" , 31 , - 1 ) ,
new Among ( "velo" , 31 , - 1 )
] ,
a _3 = [ new Among ( "ando" , - 1 , 1 ) ,
new Among ( "endo" , - 1 , 1 ) , new Among ( "ar" , - 1 , 2 ) ,
new Among ( "er" , - 1 , 2 ) , new Among ( "ir" , - 1 , 2 )
] ,
a _4 = [
new Among ( "ic" , - 1 , - 1 ) , new Among ( "abil" , - 1 , - 1 ) ,
new Among ( "os" , - 1 , - 1 ) , new Among ( "iv" , - 1 , 1 )
] ,
a _5 = [
new Among ( "ic" , - 1 , 1 ) , new Among ( "abil" , - 1 , 1 ) ,
new Among ( "iv" , - 1 , 1 )
] ,
a _6 = [ new Among ( "ica" , - 1 , 1 ) ,
new Among ( "logia" , - 1 , 3 ) , new Among ( "osa" , - 1 , 1 ) ,
new Among ( "ista" , - 1 , 1 ) , new Among ( "iva" , - 1 , 9 ) ,
new Among ( "anza" , - 1 , 1 ) , new Among ( "enza" , - 1 , 5 ) ,
new Among ( "ice" , - 1 , 1 ) , new Among ( "atrice" , 7 , 1 ) ,
new Among ( "iche" , - 1 , 1 ) , new Among ( "logie" , - 1 , 3 ) ,
new Among ( "abile" , - 1 , 1 ) , new Among ( "ibile" , - 1 , 1 ) ,
new Among ( "usione" , - 1 , 4 ) , new Among ( "azione" , - 1 , 2 ) ,
new Among ( "uzione" , - 1 , 4 ) , new Among ( "atore" , - 1 , 2 ) ,
new Among ( "ose" , - 1 , 1 ) , new Among ( "ante" , - 1 , 1 ) ,
new Among ( "mente" , - 1 , 1 ) , new Among ( "amente" , 19 , 7 ) ,
new Among ( "iste" , - 1 , 1 ) , new Among ( "ive" , - 1 , 9 ) ,
new Among ( "anze" , - 1 , 1 ) , new Among ( "enze" , - 1 , 5 ) ,
new Among ( "ici" , - 1 , 1 ) , new Among ( "atrici" , 25 , 1 ) ,
new Among ( "ichi" , - 1 , 1 ) , new Among ( "abili" , - 1 , 1 ) ,
new Among ( "ibili" , - 1 , 1 ) , new Among ( "ismi" , - 1 , 1 ) ,
new Among ( "usioni" , - 1 , 4 ) , new Among ( "azioni" , - 1 , 2 ) ,
new Among ( "uzioni" , - 1 , 4 ) , new Among ( "atori" , - 1 , 2 ) ,
new Among ( "osi" , - 1 , 1 ) , new Among ( "anti" , - 1 , 1 ) ,
new Among ( "amenti" , - 1 , 6 ) , new Among ( "imenti" , - 1 , 6 ) ,
new Among ( "isti" , - 1 , 1 ) , new Among ( "ivi" , - 1 , 9 ) ,
new Among ( "ico" , - 1 , 1 ) , new Among ( "ismo" , - 1 , 1 ) ,
new Among ( "oso" , - 1 , 1 ) , new Among ( "amento" , - 1 , 6 ) ,
new Among ( "imento" , - 1 , 6 ) , new Among ( "ivo" , - 1 , 9 ) ,
new Among ( "it\u00E0" , - 1 , 8 ) , new Among ( "ist\u00E0" , - 1 , 1 ) ,
new Among ( "ist\u00E8" , - 1 , 1 ) , new Among ( "ist\u00EC" , - 1 , 1 )
] ,
a _7 = [
new Among ( "isca" , - 1 , 1 ) , new Among ( "enda" , - 1 , 1 ) ,
new Among ( "ata" , - 1 , 1 ) , new Among ( "ita" , - 1 , 1 ) ,
new Among ( "uta" , - 1 , 1 ) , new Among ( "ava" , - 1 , 1 ) ,
new Among ( "eva" , - 1 , 1 ) , new Among ( "iva" , - 1 , 1 ) ,
new Among ( "erebbe" , - 1 , 1 ) , new Among ( "irebbe" , - 1 , 1 ) ,
new Among ( "isce" , - 1 , 1 ) , new Among ( "ende" , - 1 , 1 ) ,
new Among ( "are" , - 1 , 1 ) , new Among ( "ere" , - 1 , 1 ) ,
new Among ( "ire" , - 1 , 1 ) , new Among ( "asse" , - 1 , 1 ) ,
new Among ( "ate" , - 1 , 1 ) , new Among ( "avate" , 16 , 1 ) ,
new Among ( "evate" , 16 , 1 ) , new Among ( "ivate" , 16 , 1 ) ,
new Among ( "ete" , - 1 , 1 ) , new Among ( "erete" , 20 , 1 ) ,
new Among ( "irete" , 20 , 1 ) , new Among ( "ite" , - 1 , 1 ) ,
new Among ( "ereste" , - 1 , 1 ) , new Among ( "ireste" , - 1 , 1 ) ,
new Among ( "ute" , - 1 , 1 ) , new Among ( "erai" , - 1 , 1 ) ,
new Among ( "irai" , - 1 , 1 ) , new Among ( "isci" , - 1 , 1 ) ,
new Among ( "endi" , - 1 , 1 ) , new Among ( "erei" , - 1 , 1 ) ,
new Among ( "irei" , - 1 , 1 ) , new Among ( "assi" , - 1 , 1 ) ,
new Among ( "ati" , - 1 , 1 ) , new Among ( "iti" , - 1 , 1 ) ,
new Among ( "eresti" , - 1 , 1 ) , new Among ( "iresti" , - 1 , 1 ) ,
new Among ( "uti" , - 1 , 1 ) , new Among ( "avi" , - 1 , 1 ) ,
new Among ( "evi" , - 1 , 1 ) , new Among ( "ivi" , - 1 , 1 ) ,
new Among ( "isco" , - 1 , 1 ) , new Among ( "ando" , - 1 , 1 ) ,
new Among ( "endo" , - 1 , 1 ) , new Among ( "Yamo" , - 1 , 1 ) ,
new Among ( "iamo" , - 1 , 1 ) , new Among ( "avamo" , - 1 , 1 ) ,
new Among ( "evamo" , - 1 , 1 ) , new Among ( "ivamo" , - 1 , 1 ) ,
new Among ( "eremo" , - 1 , 1 ) , new Among ( "iremo" , - 1 , 1 ) ,
new Among ( "assimo" , - 1 , 1 ) , new Among ( "ammo" , - 1 , 1 ) ,
new Among ( "emmo" , - 1 , 1 ) , new Among ( "eremmo" , 54 , 1 ) ,
new Among ( "iremmo" , 54 , 1 ) , new Among ( "immo" , - 1 , 1 ) ,
new Among ( "ano" , - 1 , 1 ) , new Among ( "iscano" , 58 , 1 ) ,
new Among ( "avano" , 58 , 1 ) , new Among ( "evano" , 58 , 1 ) ,
new Among ( "ivano" , 58 , 1 ) , new Among ( "eranno" , - 1 , 1 ) ,
new Among ( "iranno" , - 1 , 1 ) , new Among ( "ono" , - 1 , 1 ) ,
new Among ( "iscono" , 65 , 1 ) , new Among ( "arono" , 65 , 1 ) ,
new Among ( "erono" , 65 , 1 ) , new Among ( "irono" , 65 , 1 ) ,
new Among ( "erebbero" , - 1 , 1 ) , new Among ( "irebbero" , - 1 , 1 ) ,
new Among ( "assero" , - 1 , 1 ) , new Among ( "essero" , - 1 , 1 ) ,
new Among ( "issero" , - 1 , 1 ) , new Among ( "ato" , - 1 , 1 ) ,
new Among ( "ito" , - 1 , 1 ) , new Among ( "uto" , - 1 , 1 ) ,
new Among ( "avo" , - 1 , 1 ) , new Among ( "evo" , - 1 , 1 ) ,
new Among ( "ivo" , - 1 , 1 ) , new Among ( "ar" , - 1 , 1 ) ,
new Among ( "ir" , - 1 , 1 ) , new Among ( "er\u00E0" , - 1 , 1 ) ,
new Among ( "ir\u00E0" , - 1 , 1 ) , new Among ( "er\u00F2" , - 1 , 1 ) ,
new Among ( "ir\u00F2" , - 1 , 1 )
] ,
g _v = [ 17 , 65 , 16 , 0 , 0 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 128 , 128 , 8 , 2 , 1
] ,
g _AEIO = [ 17 , 65 , 0 , 0 , 0 , 0 ,
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 128 , 128 , 8 , 2
] ,
g _CG = [ 17 ] ,
I _p2 , I _p1 , I _pV , sbp = new SnowballProgram ( ) ;
this . setCurrent = function ( word ) {
sbp . setCurrent ( word ) ;
} ;
this . getCurrent = function ( ) {
return sbp . getCurrent ( ) ;
} ;
function habr1 ( c1 , c2 , v _1 ) {
if ( sbp . eq _s ( 1 , c1 ) ) {
sbp . ket = sbp . cursor ;
if ( sbp . in _grouping ( g _v , 97 , 249 ) ) {
sbp . slice _from ( c2 ) ;
sbp . cursor = v _1 ;
return true ;
}
}
return false ;
}
function r _prelude ( ) {
var among _var , v _1 = sbp . cursor ,
v _2 , v _3 , v _4 ;
while ( true ) {
sbp . bra = sbp . cursor ;
among _var = sbp . find _among ( a _0 , 7 ) ;
if ( among _var ) {
sbp . ket = sbp . cursor ;
switch ( among _var ) {
case 1 :
sbp . slice _from ( "\u00E0" ) ;
continue ;
case 2 :
sbp . slice _from ( "\u00E8" ) ;
continue ;
case 3 :
sbp . slice _from ( "\u00EC" ) ;
continue ;
case 4 :
sbp . slice _from ( "\u00F2" ) ;
continue ;
case 5 :
sbp . slice _from ( "\u00F9" ) ;
continue ;
case 6 :
sbp . slice _from ( "qU" ) ;
continue ;
case 7 :
if ( sbp . cursor >= sbp . limit )
break ;
sbp . cursor ++ ;
continue ;
}
}
break ;
}
sbp . cursor = v _1 ;
while ( true ) {
v _2 = sbp . cursor ;
while ( true ) {
v _3 = sbp . cursor ;
if ( sbp . in _grouping ( g _v , 97 , 249 ) ) {
sbp . bra = sbp . cursor ;
v _4 = sbp . cursor ;
if ( habr1 ( "u" , "U" , v _3 ) )
break ;
sbp . cursor = v _4 ;
if ( habr1 ( "i" , "I" , v _3 ) )
break ;
}
sbp . cursor = v _3 ;
if ( sbp . cursor >= sbp . limit ) {
sbp . cursor = v _2 ;
return ;
}
sbp . cursor ++ ;
}
}
}
function habr2 ( v _1 ) {
sbp . cursor = v _1 ;
if ( ! sbp . in _grouping ( g _v , 97 , 249 ) )
return false ;
while ( ! sbp . out _grouping ( g _v , 97 , 249 ) ) {
if ( sbp . cursor >= sbp . limit )
return false ;
sbp . cursor ++ ;
}
return true ;
}
function habr3 ( ) {
if ( sbp . in _grouping ( g _v , 97 , 249 ) ) {
var v _1 = sbp . cursor ;
if ( sbp . out _grouping ( g _v , 97 , 249 ) ) {
while ( ! sbp . in _grouping ( g _v , 97 , 249 ) ) {
if ( sbp . cursor >= sbp . limit )
return habr2 ( v _1 ) ;
sbp . cursor ++ ;
}
return true ;
}
return habr2 ( v _1 ) ;
}
return false ;
}
function habr4 ( ) {
var v _1 = sbp . cursor ,
v _2 ;
if ( ! habr3 ( ) ) {
sbp . cursor = v _1 ;
if ( ! sbp . out _grouping ( g _v , 97 , 249 ) )
return ;
v _2 = sbp . cursor ;
if ( sbp . out _grouping ( g _v , 97 , 249 ) ) {
while ( ! sbp . in _grouping ( g _v , 97 , 249 ) ) {
if ( sbp . cursor >= sbp . limit ) {
sbp . cursor = v _2 ;
if ( sbp . in _grouping ( g _v , 97 , 249 ) &&
sbp . cursor < sbp . limit )
sbp . cursor ++ ;
return ;
}
sbp . cursor ++ ;
}
I _pV = sbp . cursor ;
return ;
}
sbp . cursor = v _2 ;
if ( ! sbp . in _grouping ( g _v , 97 , 249 ) || sbp . cursor >= sbp . limit )
return ;
sbp . cursor ++ ;
}
I _pV = sbp . cursor ;
}
function habr5 ( ) {
while ( ! sbp . in _grouping ( g _v , 97 , 249 ) ) {
if ( sbp . cursor >= sbp . limit )
return false ;
sbp . cursor ++ ;
}
while ( ! sbp . out _grouping ( g _v , 97 , 249 ) ) {
if ( sbp . cursor >= sbp . limit )
return false ;
sbp . cursor ++ ;
}
return true ;
}
function r _mark _regions ( ) {
var v _1 = sbp . cursor ;
I _pV = sbp . limit ;
I _p1 = I _pV ;
I _p2 = I _pV ;
habr4 ( ) ;
sbp . cursor = v _1 ;
if ( habr5 ( ) ) {
I _p1 = sbp . cursor ;
if ( habr5 ( ) )
I _p2 = sbp . cursor ;
}
}
function r _postlude ( ) {
var among _var ;
while ( true ) {
sbp . bra = sbp . cursor ;
among _var = sbp . find _among ( a _1 , 3 ) ;
if ( ! among _var )
break ;
sbp . ket = sbp . cursor ;
switch ( among _var ) {
case 1 :
sbp . slice _from ( "i" ) ;
break ;
case 2 :
sbp . slice _from ( "u" ) ;
break ;
case 3 :
if ( sbp . cursor >= sbp . limit )
return ;
sbp . cursor ++ ;
break ;
}
}
}
function r _RV ( ) {
return I _pV <= sbp . cursor ;
}
function r _R1 ( ) {
return I _p1 <= sbp . cursor ;
}
function r _R2 ( ) {
return I _p2 <= sbp . cursor ;
}
function r _attached _pronoun ( ) {
var among _var ;
sbp . ket = sbp . cursor ;
if ( sbp . find _among _b ( a _2 , 37 ) ) {
sbp . bra = sbp . cursor ;
among _var = sbp . find _among _b ( a _3 , 5 ) ;
if ( among _var && r _RV ( ) ) {
switch ( among _var ) {
case 1 :
sbp . slice _del ( ) ;
break ;
case 2 :
sbp . slice _from ( "e" ) ;
break ;
}
}
}
}
function r _standard _suffix ( ) {
var among _var ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _6 , 51 ) ;
if ( ! among _var )
return false ;
sbp . bra = sbp . cursor ;
switch ( among _var ) {
case 1 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _del ( ) ;
break ;
case 2 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 2 , "ic" ) ) {
sbp . bra = sbp . cursor ;
if ( r _R2 ( ) )
sbp . slice _del ( ) ;
}
break ;
case 3 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _from ( "log" ) ;
break ;
case 4 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _from ( "u" ) ;
break ;
case 5 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _from ( "ente" ) ;
break ;
case 6 :
if ( ! r _RV ( ) )
return false ;
sbp . slice _del ( ) ;
break ;
case 7 :
if ( ! r _R1 ( ) )
return false ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _4 , 4 ) ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
if ( r _R2 ( ) ) {
sbp . slice _del ( ) ;
if ( among _var == 1 ) {
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 2 , "at" ) ) {
sbp . bra = sbp . cursor ;
if ( r _R2 ( ) )
sbp . slice _del ( ) ;
}
}
}
}
break ;
case 8 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _5 , 3 ) ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
if ( among _var == 1 )
if ( r _R2 ( ) )
sbp . slice _del ( ) ;
}
break ;
case 9 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 2 , "at" ) ) {
sbp . bra = sbp . cursor ;
if ( r _R2 ( ) ) {
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 2 , "ic" ) ) {
sbp . bra = sbp . cursor ;
if ( r _R2 ( ) )
sbp . slice _del ( ) ;
}
}
}
break ;
}
return true ;
}
function r _verb _suffix ( ) {
var among _var , v _1 ;
if ( sbp . cursor >= I _pV ) {
v _1 = sbp . limit _backward ;
sbp . limit _backward = I _pV ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _7 , 87 ) ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
if ( among _var == 1 )
sbp . slice _del ( ) ;
}
sbp . limit _backward = v _1 ;
}
}
function habr6 ( ) {
var v _1 = sbp . limit - sbp . cursor ;
sbp . ket = sbp . cursor ;
if ( sbp . in _grouping _b ( g _AEIO , 97 , 242 ) ) {
sbp . bra = sbp . cursor ;
if ( r _RV ( ) ) {
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 1 , "i" ) ) {
sbp . bra = sbp . cursor ;
if ( r _RV ( ) ) {
sbp . slice _del ( ) ;
return ;
}
}
}
}
sbp . cursor = sbp . limit - v _1 ;
}
function r _vowel _suffix ( ) {
habr6 ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 1 , "h" ) ) {
sbp . bra = sbp . cursor ;
if ( sbp . in _grouping _b ( g _CG , 99 , 103 ) )
if ( r _RV ( ) )
sbp . slice _del ( ) ;
}
}
this . stem = function ( ) {
var v _1 = sbp . cursor ;
r _prelude ( ) ;
sbp . cursor = v _1 ;
r _mark _regions ( ) ;
sbp . limit _backward = v _1 ;
sbp . cursor = sbp . limit ;
r _attached _pronoun ( ) ;
sbp . cursor = sbp . limit ;
if ( ! r _standard _suffix ( ) ) {
sbp . cursor = sbp . limit ;
r _verb _suffix ( ) ;
}
sbp . cursor = sbp . limit ;
r _vowel _suffix ( ) ;
sbp . cursor = sbp . limit _backward ;
r _postlude ( ) ;
return true ;
}
} ;
/* and return a function that stems a word for the current locale */
return function ( token ) {
// for lunr version 2
if ( typeof token . update === "function" ) {
return token . update ( function ( word ) {
st . setCurrent ( word ) ;
st . stem ( ) ;
return st . getCurrent ( ) ;
} )
} else { // for lunr version <= 1
st . setCurrent ( token ) ;
st . stem ( ) ;
return st . getCurrent ( ) ;
}
}
} ) ( ) ;
lunr . Pipeline . registerFunction ( lunr . it . stemmer , 'stemmer-it' ) ;
lunr . it . stopWordFilter = lunr . generateStopWordFilter ( 'a abbia abbiamo abbiano abbiate ad agl agli ai al all alla alle allo anche avemmo avendo avesse avessero avessi avessimo aveste avesti avete aveva avevamo avevano avevate avevi avevo avrai avranno avrebbe avrebbero avrei avremmo avremo avreste avresti avrete avrà avrò avuta avute avuti avuto c che chi ci coi col come con contro cui da dagl dagli dai dal dall dalla dalle dallo degl degli dei del dell della delle dello di dov dove e ebbe ebbero ebbi ed era erano eravamo eravate eri ero essendo faccia facciamo facciano facciate faccio facemmo facendo facesse facessero facessi facessimo faceste facesti faceva facevamo facevano facevate facevi facevo fai fanno farai faranno farebbe farebbero farei faremmo faremo fareste faresti farete farà farò fece fecero feci fosse fossero fossi fossimo foste fosti fu fui fummo furono gli ha hai hanno ho i il in io l la le lei li lo loro lui ma mi mia mie miei mio ne negl negli nei nel nell nella nelle nello noi non nostra nostre nostri nostro o per perché più quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sarà sarò se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete starà starò stava stavamo stavano stavate stavi stavo stemmo stesse stessero stessi stessimo steste stesti stette stettero stetti stia stiamo stiano stiate sto su sua sue sugl sugli sui sul sull sulla sulle sullo suo suoi ti tra tu tua tue tuo tuoi tutti tutto un una uno vi voi vostra vostre vostri vostro è' . split ( ' ' ) ) ;
lunr . Pipeline . registerFunction ( lunr . it . stopWordFilter , 'stopWordFilter-it' ) ;
} ;
2020-05-18 11:35:33 +02:00
} ) )