def test_unstem():

    # cat > cats
    t = Text('cat cat cats')
    assert t.unstem('cat') == 'cat'

    # cats > cat
    t = Text('cat cat cats cats cats')
    assert t.unstem('cat') == 'cats'
Given a word stem, unstem() should return the most frequently- occurring
dataset/ETHPy150Open davidmcclure/textplot/test/text/test_unstem.py/test_unstem