2017-03-01 20:30:51 +00:00
|
|
|
# coding: utf-8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
# Note: "chromosomes" worked previous the bug fix
|
2017-03-01 20:43:08 +00:00
|
|
|
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocalize", "colocaliz"])])
|
2017-03-16 23:53:47 +00:00
|
|
|
def test_issue781(lemmatizer, word, lemmas):
|
2017-03-01 20:43:08 +00:00
|
|
|
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == set(lemmas)
|