Back | WordLists

BulgarianStemmer - bulgarianStemmer.txt

Download Complete Wordlist (4.07 K)
Download Complete Wordlist bzip2 Compressed (1.25 K)
Showing 30 Randomly Sampled Lines...
return($word);
}
return(substr($word,0,$i-4));
}
print "$stem\n";
if ($line =~ m/[аое]$/) { # final -[aoe]
return(substr($word,0,$i-6));
$line = substr($line,0,$i-2);
exit(0);
if (($i > 12) && ($word =~ m/ият$/)) { # final -H(R)T
substr($line,$i-4,4) = substr($line,$i-2,2);
if ($word =~ m/ища$/) { # final -HWa
return(substr($word,0,$i-4));
$word =~ s/ци$/к/;
substr($word,$i-2,2) = "";
return(substr($word,0,$i-4));
# done by J. Savoy University of Neuchatel (www.unine.ch/info/clef/)
if ($i > 12) { # for words having more than 6 characters
$word = $_[0];
# normalization (e.g., -a could be a definite article or plural form)
}
$i -= 2;
# definite article (the) for nouns
return($line);
$word =~ s/зи$/г/;
}
if ($word =~ m/ия$/) { # final -H(R)
if (($i > 10) && (substr($line,$i-4,2) eq "ъ")) {
$word =~ s/овци$/о/;
return(substr($word,0,$i-6));


Back | WordLists