2017-03-01 23:30:51 +03:00
|
|
|
# coding: utf-8
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
# Note: "chromosomes" worked previous the bug fix
|
2017-05-29 23:14:31 +03:00
|
|
|
@pytest.mark.models('en')
|
2017-03-01 23:43:08 +03:00
|
|
|
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocalize", "colocaliz"])])
|
2017-05-29 23:14:31 +03:00
|
|
|
def test_issue781(EN, word, lemmas):
|
|
|
|
lemmatizer = EN.Defaults.create_lemmatizer()
|
2017-10-24 18:05:15 +03:00
|
|
|
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == lemmas
|