2020-04-27 20:08:31 +02:00
/ * !
* Lunr languages , ` Spanish ` 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 . es = function ( ) {
this . pipeline . reset ( ) ;
this . pipeline . add (
lunr . es . trimmer ,
lunr . es . stopWordFilter ,
lunr . es . 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 . es . stemmer )
}
} ;
/* lunr trimmer function */
lunr . es . 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 . es . trimmer = lunr . trimmerSupport . generateTrimmer ( lunr . es . wordCharacters ) ;
lunr . Pipeline . registerFunction ( lunr . es . trimmer , 'trimmer-es' ) ;
/* lunr stemmer function */
lunr . es . stemmer = ( function ( ) {
/* create the wrapped stemmer object */
var Among = lunr . stemmerSupport . Among ,
SnowballProgram = lunr . stemmerSupport . SnowballProgram ,
st = new function SpanishStemmer ( ) {
var a _0 = [ new Among ( "" , - 1 , 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 ( "la" , - 1 , - 1 ) , new Among ( "sela" , 0 , - 1 ) ,
new Among ( "le" , - 1 , - 1 ) , new Among ( "me" , - 1 , - 1 ) ,
new Among ( "se" , - 1 , - 1 ) , new Among ( "lo" , - 1 , - 1 ) ,
new Among ( "selo" , 5 , - 1 ) , new Among ( "las" , - 1 , - 1 ) ,
new Among ( "selas" , 7 , - 1 ) , new Among ( "les" , - 1 , - 1 ) ,
new Among ( "los" , - 1 , - 1 ) , new Among ( "selos" , 10 , - 1 ) ,
new Among ( "nos" , - 1 , - 1 )
] ,
a _2 = [ new Among ( "ando" , - 1 , 6 ) ,
new Among ( "iendo" , - 1 , 6 ) , new Among ( "yendo" , - 1 , 7 ) ,
new Among ( "\u00E1ndo" , - 1 , 2 ) , new Among ( "i\u00E9ndo" , - 1 , 1 ) ,
new Among ( "ar" , - 1 , 6 ) , new Among ( "er" , - 1 , 6 ) ,
new Among ( "ir" , - 1 , 6 ) , new Among ( "\u00E1r" , - 1 , 3 ) ,
new Among ( "\u00E9r" , - 1 , 4 ) , new Among ( "\u00EDr" , - 1 , 5 )
] ,
a _3 = [
new Among ( "ic" , - 1 , - 1 ) , new Among ( "ad" , - 1 , - 1 ) ,
new Among ( "os" , - 1 , - 1 ) , new Among ( "iv" , - 1 , 1 )
] ,
a _4 = [
new Among ( "able" , - 1 , 1 ) , new Among ( "ible" , - 1 , 1 ) ,
new Among ( "ante" , - 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 ( "ancia" , - 1 , 2 ) ,
new Among ( "encia" , - 1 , 5 ) , new Among ( "adora" , - 1 , 2 ) ,
new Among ( "osa" , - 1 , 1 ) , new Among ( "ista" , - 1 , 1 ) ,
new Among ( "iva" , - 1 , 9 ) , new Among ( "anza" , - 1 , 1 ) ,
new Among ( "log\u00EDa" , - 1 , 3 ) , new Among ( "idad" , - 1 , 8 ) ,
new Among ( "able" , - 1 , 1 ) , new Among ( "ible" , - 1 , 1 ) ,
new Among ( "ante" , - 1 , 2 ) , new Among ( "mente" , - 1 , 7 ) ,
new Among ( "amente" , 13 , 6 ) , new Among ( "aci\u00F3n" , - 1 , 2 ) ,
new Among ( "uci\u00F3n" , - 1 , 4 ) , new Among ( "ico" , - 1 , 1 ) ,
new Among ( "ismo" , - 1 , 1 ) , new Among ( "oso" , - 1 , 1 ) ,
new Among ( "amiento" , - 1 , 1 ) , new Among ( "imiento" , - 1 , 1 ) ,
new Among ( "ivo" , - 1 , 9 ) , new Among ( "ador" , - 1 , 2 ) ,
new Among ( "icas" , - 1 , 1 ) , new Among ( "ancias" , - 1 , 2 ) ,
new Among ( "encias" , - 1 , 5 ) , new Among ( "adoras" , - 1 , 2 ) ,
new Among ( "osas" , - 1 , 1 ) , new Among ( "istas" , - 1 , 1 ) ,
new Among ( "ivas" , - 1 , 9 ) , new Among ( "anzas" , - 1 , 1 ) ,
new Among ( "log\u00EDas" , - 1 , 3 ) , new Among ( "idades" , - 1 , 8 ) ,
new Among ( "ables" , - 1 , 1 ) , new Among ( "ibles" , - 1 , 1 ) ,
new Among ( "aciones" , - 1 , 2 ) , new Among ( "uciones" , - 1 , 4 ) ,
new Among ( "adores" , - 1 , 2 ) , new Among ( "antes" , - 1 , 2 ) ,
new Among ( "icos" , - 1 , 1 ) , new Among ( "ismos" , - 1 , 1 ) ,
new Among ( "osos" , - 1 , 1 ) , new Among ( "amientos" , - 1 , 1 ) ,
new Among ( "imientos" , - 1 , 1 ) , new Among ( "ivos" , - 1 , 9 )
] ,
a _7 = [
new Among ( "ya" , - 1 , 1 ) , new Among ( "ye" , - 1 , 1 ) ,
new Among ( "yan" , - 1 , 1 ) , new Among ( "yen" , - 1 , 1 ) ,
new Among ( "yeron" , - 1 , 1 ) , new Among ( "yendo" , - 1 , 1 ) ,
new Among ( "yo" , - 1 , 1 ) , new Among ( "yas" , - 1 , 1 ) ,
new Among ( "yes" , - 1 , 1 ) , new Among ( "yais" , - 1 , 1 ) ,
new Among ( "yamos" , - 1 , 1 ) , new Among ( "y\u00F3" , - 1 , 1 )
] ,
a _8 = [
new Among ( "aba" , - 1 , 2 ) , new Among ( "ada" , - 1 , 2 ) ,
new Among ( "ida" , - 1 , 2 ) , new Among ( "ara" , - 1 , 2 ) ,
new Among ( "iera" , - 1 , 2 ) , new Among ( "\u00EDa" , - 1 , 2 ) ,
new Among ( "ar\u00EDa" , 5 , 2 ) , new Among ( "er\u00EDa" , 5 , 2 ) ,
new Among ( "ir\u00EDa" , 5 , 2 ) , new Among ( "ad" , - 1 , 2 ) ,
new Among ( "ed" , - 1 , 2 ) , new Among ( "id" , - 1 , 2 ) ,
new Among ( "ase" , - 1 , 2 ) , new Among ( "iese" , - 1 , 2 ) ,
new Among ( "aste" , - 1 , 2 ) , new Among ( "iste" , - 1 , 2 ) ,
new Among ( "an" , - 1 , 2 ) , new Among ( "aban" , 16 , 2 ) ,
new Among ( "aran" , 16 , 2 ) , new Among ( "ieran" , 16 , 2 ) ,
new Among ( "\u00EDan" , 16 , 2 ) , new Among ( "ar\u00EDan" , 20 , 2 ) ,
new Among ( "er\u00EDan" , 20 , 2 ) , new Among ( "ir\u00EDan" , 20 , 2 ) ,
new Among ( "en" , - 1 , 1 ) , new Among ( "asen" , 24 , 2 ) ,
new Among ( "iesen" , 24 , 2 ) , new Among ( "aron" , - 1 , 2 ) ,
new Among ( "ieron" , - 1 , 2 ) , new Among ( "ar\u00E1n" , - 1 , 2 ) ,
new Among ( "er\u00E1n" , - 1 , 2 ) , new Among ( "ir\u00E1n" , - 1 , 2 ) ,
new Among ( "ado" , - 1 , 2 ) , new Among ( "ido" , - 1 , 2 ) ,
new Among ( "ando" , - 1 , 2 ) , new Among ( "iendo" , - 1 , 2 ) ,
new Among ( "ar" , - 1 , 2 ) , new Among ( "er" , - 1 , 2 ) ,
new Among ( "ir" , - 1 , 2 ) , new Among ( "as" , - 1 , 2 ) ,
new Among ( "abas" , 39 , 2 ) , new Among ( "adas" , 39 , 2 ) ,
new Among ( "idas" , 39 , 2 ) , new Among ( "aras" , 39 , 2 ) ,
new Among ( "ieras" , 39 , 2 ) , new Among ( "\u00EDas" , 39 , 2 ) ,
new Among ( "ar\u00EDas" , 45 , 2 ) , new Among ( "er\u00EDas" , 45 , 2 ) ,
new Among ( "ir\u00EDas" , 45 , 2 ) , new Among ( "es" , - 1 , 1 ) ,
new Among ( "ases" , 49 , 2 ) , new Among ( "ieses" , 49 , 2 ) ,
new Among ( "abais" , - 1 , 2 ) , new Among ( "arais" , - 1 , 2 ) ,
new Among ( "ierais" , - 1 , 2 ) , new Among ( "\u00EDais" , - 1 , 2 ) ,
new Among ( "ar\u00EDais" , 55 , 2 ) , new Among ( "er\u00EDais" , 55 , 2 ) ,
new Among ( "ir\u00EDais" , 55 , 2 ) , new Among ( "aseis" , - 1 , 2 ) ,
new Among ( "ieseis" , - 1 , 2 ) , new Among ( "asteis" , - 1 , 2 ) ,
new Among ( "isteis" , - 1 , 2 ) , new Among ( "\u00E1is" , - 1 , 2 ) ,
new Among ( "\u00E9is" , - 1 , 1 ) , new Among ( "ar\u00E9is" , 64 , 2 ) ,
new Among ( "er\u00E9is" , 64 , 2 ) , new Among ( "ir\u00E9is" , 64 , 2 ) ,
new Among ( "ados" , - 1 , 2 ) , new Among ( "idos" , - 1 , 2 ) ,
new Among ( "amos" , - 1 , 2 ) , new Among ( "\u00E1bamos" , 70 , 2 ) ,
new Among ( "\u00E1ramos" , 70 , 2 ) , new Among ( "i\u00E9ramos" , 70 , 2 ) ,
new Among ( "\u00EDamos" , 70 , 2 ) , new Among ( "ar\u00EDamos" , 74 , 2 ) ,
new Among ( "er\u00EDamos" , 74 , 2 ) , new Among ( "ir\u00EDamos" , 74 , 2 ) ,
new Among ( "emos" , - 1 , 1 ) , new Among ( "aremos" , 78 , 2 ) ,
new Among ( "eremos" , 78 , 2 ) , new Among ( "iremos" , 78 , 2 ) ,
new Among ( "\u00E1semos" , 78 , 2 ) , new Among ( "i\u00E9semos" , 78 , 2 ) ,
new Among ( "imos" , - 1 , 2 ) , new Among ( "ar\u00E1s" , - 1 , 2 ) ,
new Among ( "er\u00E1s" , - 1 , 2 ) , new Among ( "ir\u00E1s" , - 1 , 2 ) ,
new Among ( "\u00EDs" , - 1 , 2 ) , new Among ( "ar\u00E1" , - 1 , 2 ) ,
new Among ( "er\u00E1" , - 1 , 2 ) , new Among ( "ir\u00E1" , - 1 , 2 ) ,
new Among ( "ar\u00E9" , - 1 , 2 ) , new Among ( "er\u00E9" , - 1 , 2 ) ,
new Among ( "ir\u00E9" , - 1 , 2 ) , new Among ( "i\u00F3" , - 1 , 2 )
] ,
a _9 = [
new Among ( "a" , - 1 , 1 ) , new Among ( "e" , - 1 , 2 ) ,
new Among ( "o" , - 1 , 1 ) , new Among ( "os" , - 1 , 1 ) ,
new Among ( "\u00E1" , - 1 , 1 ) , new Among ( "\u00E9" , - 1 , 2 ) ,
new Among ( "\u00ED" , - 1 , 1 ) , new Among ( "\u00F3" , - 1 , 1 )
] ,
g _v = [ 17 ,
65 , 16 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 17 , 4 , 10
] ,
I _p2 , I _p1 , I _pV , sbp = new SnowballProgram ( ) ;
this . setCurrent = function ( word ) {
sbp . setCurrent ( word ) ;
} ;
this . getCurrent = function ( ) {
return sbp . getCurrent ( ) ;
} ;
function habr1 ( ) {
if ( sbp . out _grouping ( g _v , 97 , 252 ) ) {
while ( ! sbp . in _grouping ( g _v , 97 , 252 ) ) {
if ( sbp . cursor >= sbp . limit )
return true ;
sbp . cursor ++ ;
}
return false ;
}
return true ;
}
function habr2 ( ) {
if ( sbp . in _grouping ( g _v , 97 , 252 ) ) {
var v _1 = sbp . cursor ;
if ( habr1 ( ) ) {
sbp . cursor = v _1 ;
if ( ! sbp . in _grouping ( g _v , 97 , 252 ) )
return true ;
while ( ! sbp . out _grouping ( g _v , 97 , 252 ) ) {
if ( sbp . cursor >= sbp . limit )
return true ;
sbp . cursor ++ ;
}
}
return false ;
}
return true ;
}
function habr3 ( ) {
var v _1 = sbp . cursor ,
v _2 ;
if ( habr2 ( ) ) {
sbp . cursor = v _1 ;
if ( ! sbp . out _grouping ( g _v , 97 , 252 ) )
return ;
v _2 = sbp . cursor ;
if ( habr1 ( ) ) {
sbp . cursor = v _2 ;
if ( ! sbp . in _grouping ( g _v , 97 , 252 ) || sbp . cursor >= sbp . limit )
return ;
sbp . cursor ++ ;
}
}
I _pV = sbp . cursor ;
}
function habr4 ( ) {
while ( ! sbp . in _grouping ( g _v , 97 , 252 ) ) {
if ( sbp . cursor >= sbp . limit )
return false ;
sbp . cursor ++ ;
}
while ( ! sbp . out _grouping ( g _v , 97 , 252 ) ) {
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 ;
habr3 ( ) ;
sbp . cursor = v _1 ;
if ( habr4 ( ) ) {
I _p1 = sbp . cursor ;
if ( habr4 ( ) )
I _p2 = sbp . cursor ;
}
}
function r _postlude ( ) {
var among _var ;
while ( true ) {
sbp . bra = sbp . cursor ;
among _var = sbp . find _among ( a _0 , 6 ) ;
if ( among _var ) {
sbp . ket = sbp . cursor ;
switch ( among _var ) {
case 1 :
sbp . slice _from ( "a" ) ;
continue ;
case 2 :
sbp . slice _from ( "e" ) ;
continue ;
case 3 :
sbp . slice _from ( "i" ) ;
continue ;
case 4 :
sbp . slice _from ( "o" ) ;
continue ;
case 5 :
sbp . slice _from ( "u" ) ;
continue ;
case 6 :
if ( sbp . cursor >= sbp . limit )
break ;
sbp . cursor ++ ;
continue ;
}
}
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 _1 , 13 ) ) {
sbp . bra = sbp . cursor ;
among _var = sbp . find _among _b ( a _2 , 11 ) ;
if ( among _var && r _RV ( ) )
switch ( among _var ) {
case 1 :
sbp . bra = sbp . cursor ;
sbp . slice _from ( "iendo" ) ;
break ;
case 2 :
sbp . bra = sbp . cursor ;
sbp . slice _from ( "ando" ) ;
break ;
case 3 :
sbp . bra = sbp . cursor ;
sbp . slice _from ( "ar" ) ;
break ;
case 4 :
sbp . bra = sbp . cursor ;
sbp . slice _from ( "er" ) ;
break ;
case 5 :
sbp . bra = sbp . cursor ;
sbp . slice _from ( "ir" ) ;
break ;
case 6 :
sbp . slice _del ( ) ;
break ;
case 7 :
if ( sbp . eq _s _b ( 1 , "u" ) )
sbp . slice _del ( ) ;
break ;
}
}
}
function habr5 ( a , n ) {
if ( ! r _R2 ( ) )
return true ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
var among _var = sbp . find _among _b ( a , n ) ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
if ( among _var == 1 && r _R2 ( ) )
sbp . slice _del ( ) ;
}
return false ;
}
function habr6 ( c1 ) {
if ( ! r _R2 ( ) )
return true ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 2 , c1 ) ) {
sbp . bra = sbp . cursor ;
if ( r _R2 ( ) )
sbp . slice _del ( ) ;
}
return false ;
}
function r _standard _suffix ( ) {
var among _var ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _6 , 46 ) ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
switch ( among _var ) {
case 1 :
if ( ! r _R2 ( ) )
return false ;
sbp . slice _del ( ) ;
break ;
case 2 :
if ( habr6 ( "ic" ) )
return false ;
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 _R1 ( ) )
return false ;
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _3 , 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 7 :
if ( habr5 ( a _4 , 3 ) )
return false ;
break ;
case 8 :
if ( habr5 ( a _5 , 3 ) )
return false ;
break ;
case 9 :
if ( habr6 ( "at" ) )
return false ;
break ;
}
return true ;
}
return false ;
}
function r _y _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 , 12 ) ;
sbp . limit _backward = v _1 ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
if ( among _var == 1 ) {
if ( ! sbp . eq _s _b ( 1 , "u" ) )
return false ;
sbp . slice _del ( ) ;
}
return true ;
}
}
return false ;
}
function r _verb _suffix ( ) {
var among _var , v _1 , v _2 , v _3 ;
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 _8 , 96 ) ;
sbp . limit _backward = v _1 ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
switch ( among _var ) {
case 1 :
v _2 = sbp . limit - sbp . cursor ;
if ( sbp . eq _s _b ( 1 , "u" ) ) {
v _3 = sbp . limit - sbp . cursor ;
if ( sbp . eq _s _b ( 1 , "g" ) )
sbp . cursor = sbp . limit - v _3 ;
else
sbp . cursor = sbp . limit - v _2 ;
} else
sbp . cursor = sbp . limit - v _2 ;
sbp . bra = sbp . cursor ;
case 2 :
sbp . slice _del ( ) ;
break ;
}
}
}
}
function r _residual _suffix ( ) {
var among _var , v _1 ;
sbp . ket = sbp . cursor ;
among _var = sbp . find _among _b ( a _9 , 8 ) ;
if ( among _var ) {
sbp . bra = sbp . cursor ;
switch ( among _var ) {
case 1 :
if ( r _RV ( ) )
sbp . slice _del ( ) ;
break ;
case 2 :
if ( r _RV ( ) ) {
sbp . slice _del ( ) ;
sbp . ket = sbp . cursor ;
if ( sbp . eq _s _b ( 1 , "u" ) ) {
sbp . bra = sbp . cursor ;
v _1 = sbp . limit - sbp . cursor ;
if ( sbp . eq _s _b ( 1 , "g" ) ) {
sbp . cursor = sbp . limit - v _1 ;
if ( r _RV ( ) )
sbp . slice _del ( ) ;
}
}
}
break ;
}
}
}
this . stem = function ( ) {
var v _1 = sbp . cursor ;
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 ;
if ( ! r _y _verb _suffix ( ) ) {
sbp . cursor = sbp . limit ;
r _verb _suffix ( ) ;
}
}
sbp . cursor = sbp . limit ;
r _residual _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 . es . stemmer , 'stemmer-es' ) ;
lunr . es . stopWordFilter = lunr . generateStopWordFilter ( 'a al algo algunas algunos ante antes como con contra cual cuando de del desde donde durante e el ella ellas ellos en entre era erais eran eras eres es esa esas ese eso esos esta estaba estabais estaban estabas estad estada estadas estado estados estamos estando estar estaremos estará estarán estarás estaré estaréis estaría estaríais estaríamos estarían estarías estas este estemos esto estos estoy estuve estuviera estuvierais estuvieran estuvieras estuvieron estuviese estuvieseis estuviesen estuvieses estuvimos estuviste estuvisteis estuviéramos estuviésemos estuvo está estábamos estáis están estás esté estéis estén estés fue fuera fuerais fueran fueras fueron fuese fueseis fuesen fueses fui fuimos fuiste fuisteis fuéramos fuésemos ha habida habidas habido habidos habiendo habremos habrá habrán habrás habré habréis habría habríais habríamos habrían habrías habéis había habíais habíamos habían habías han has hasta hay haya hayamos hayan hayas hayáis he hemos hube hubiera hubierais hubieran hubieras hubieron hubiese hubieseis hubiesen hubieses hubimos hubiste hubisteis hubiéramos hubiésemos hubo la las le les lo los me mi mis mucho muchos muy más mí mía mías mío míos nada ni no nos nosotras nosotros nuestra nuestras nuestro nuestros o os otra otras otro otros para pero poco por porque que quien quienes qué se sea seamos sean seas seremos será serán serás seré seréis sería seríais seríamos serían serías seáis sido siendo sin sobre sois somos son soy su sus suya suyas suyo suyos sí también tanto te tendremos tendrá tendrán tendrás tendré tendréis tendría tendríais tendríamos tendrían tendrías tened tenemos tenga tengamos tengan tengas tengo tengáis tenida tenidas tenido tenidos teniendo tenéis tenía teníais teníamos tenían tenías ti tiene tienen tienes todo todos tu tus tuve tuviera tuvierais tuvieran tuvieras tuvieron tuviese tuvieseis tuviesen tuvieses tuvimos tuviste tuvisteis tuviéramos tuviésemos tuvo tuya tuyas tuyo tuyos tú un una uno unos vosotras vosotros vuestra vuestras vuestro vuestros y ya yo él éramos' . split ( ' ' ) ) ;
lunr . Pipeline . registerFunction ( lunr . es . stopWordFilter , 'stopWordFilter-es' ) ;
} ;
2020-05-18 11:35:33 +02:00
} ) )