var stopwords=["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"],Stemmer=function(){var a={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},r={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},c="[^aeiou]",n="[aeiouy]",e=c+"[^aeiouy]*",t=n+"[aeiou]*",o="^("+e+")?"+t+e,l="^("+e+")?"+t+e+"("+t+")?$",s="^("+e+")?"+t+e+t+e,i="^("+e+")?"+n;this.stemWord=function(t){var c,d,u,h,m,f,p,g,v=t;return t.length<3?t:(m=t.substr(0,1),m=="y"&&(t=m.toUpperCase()+t.substr(1)),c=/^(.+?)(ss|i)es$/,u=/^(.+?)([^s])s$/,c.test(t)?t=t.replace(c,"$1$2"):u.test(t)&&(t=t.replace(u,"$1$2")),c=/^(.+?)eed$/,u=/^(.+?)(ed|ing)$/,c.test(t)?(h=c.exec(t),c=new RegExp(o),c.test(h[1])&&(c=/.$/,t=t.replace(c,""))):u.test(t)&&(h=u.exec(t),d=h[1],u=new RegExp(i),u.test(d)&&(t=d,u=/(at|bl|iz)$/,p=new RegExp("([^aeiouylsz])\\1$"),g=new RegExp("^"+e+n+"[^aeiouwxy]$"),u.test(t)?t=t+"e":p.test(t)?(c=/.$/,t=t.replace(c,"")):g.test(t)&&(t=t+"e"))),c=/^(.+?)y$/,c.test(t)&&(h=c.exec(t),d=h[1],c=new RegExp(i),c.test(d)&&(t=d+"i")),c=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,c.test(t)&&(h=c.exec(t),d=h[1],f=h[2],c=new RegExp(o),c.test(d)&&(t=d+a[f])),c=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,c.test(t)&&(h=c.exec(t),d=h[1],f=h[2],c=new RegExp(o),c.test(d)&&(t=d+r[f])),c=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,u=/^(.+?)(s|t)(ion)$/,c.test(t)?(h=c.exec(t),d=h[1],c=new RegExp(s),c.test(d)&&(t=d)):u.test(t)&&(h=u.exec(t),d=h[1]+h[2],u=new RegExp(s),u.test(d)&&(t=d)),c=/^(.+?)e$/,c.test(t)&&(h=c.exec(t),d=h[1],c=new RegExp(s),u=new RegExp(l),p=new RegExp("^"+e+n+"[^aeiouwxy]$"),(c.test(d)||u.test(d)&&!p.test(d))&&(t=d)),c=/ll$/,u=new RegExp(s),c.test(t)&&u.test(t)&&(c=/.$/,t=t.replace(c,"")),m=="y"&&(t=m.toLowerCase()+t.substr(1)),t)}}