ejh243 / MunroeJargonProfiler

web app to analyse the jargon content of a text document
MIT License
1 stars 0 forks source link

Add some tests for proper_noun #35

Closed rgaiacs closed 7 years ago

rgaiacs commented 7 years ago
  1. Middle of the sentance
def test_proper_noun_middle_sentance():
    assert tag_proper_nouns("Today, Eilis is at CW17.") == ["Eilis"]
  1. No proper noun
def test_proper_noun_missing():
    assert tag_proper_nouns("Today is cloudy at CW17.") == []
  1. More than one proper noun
def test_proper_noun_missing():
    assert tag_proper_nouns("Eilis Hannon is a girl.") == ["Eilis", "Hannon"]