def test_simple_analyzer(): analyzer = annif.analyzer.get_analyzer("simple") assert analyzer.normalize_word("Big") == "big"
def test_snowball_finnish_analyzer_normalize_word(): analyzer = annif.analyzer.get_analyzer("snowball(finnish)") assert analyzer.normalize_word("vanhat") == "vanh" assert analyzer.normalize_word("koirien") == "koir"
def test_english_analyzer_normalize_word(): analyzer = annif.analyzer.get_analyzer("snowball(english)") assert analyzer.normalize_word("running") == "run" assert analyzer.normalize_word("words") == "word"
def test_swedish_analyzer_normalize_word(): analyzer = annif.analyzer.get_analyzer("snowball(swedish)") assert analyzer.normalize_word("gamla") == "gaml" assert analyzer.normalize_word("hundar") == "hund"
def test_voikko_finnish_analyzer_normalize_word(): analyzer = annif.analyzer.get_analyzer("voikko(fi)") assert analyzer.normalize_word("xyzzy") == "xyzzy" assert analyzer.normalize_word("vanhat") == "vanha" assert analyzer.normalize_word("koirien") == "koira"