Example #1
0
def test_step4_14():
    assert _PorterAlgorithm('communism').stem(4) == 'commun'
Example #2
0
def test_step1b_11():
    assert _PorterAlgorithm('falling').stem(1) == 'fall'
Example #3
0
def test_step1c_1():
    assert _PorterAlgorithm('happy').stem(1) == 'happi'
Example #4
0
def test_step1b_7():
    assert _PorterAlgorithm('conflated').stem(1) == 'conflate'
Example #5
0
def test_step1b_9():
    assert _PorterAlgorithm('sized').stem(1) == 'size'
Example #6
0
def test_step1b_3():
    assert _PorterAlgorithm('bled').stem(1) == 'bled'
Example #7
0
def test_step1b_5():
    assert _PorterAlgorithm('sing').stem(1) == 'sing'
Example #8
0
def test_step5_1():
    assert _PorterAlgorithm('rate').stem(5) == 'rate'
Example #9
0
def test_step5_2():
    assert _PorterAlgorithm('probate').stem(5) == 'probat'
Example #10
0
def test_step4_18():
    assert _PorterAlgorithm('effective').stem(4) == 'effect'
Example #11
0
def test_step4_19():
    assert _PorterAlgorithm('bowdlerize').stem(4) == 'bowdler'
Example #12
0
def test_step4_17():
    assert _PorterAlgorithm('homologous').stem(4) == 'homolog'
Example #13
0
def test_step4_16():
    assert _PorterAlgorithm('angulariti').stem(4) == 'angular'
Example #14
0
def test_step4_15():
    assert _PorterAlgorithm('activate').stem(4) == 'activ'
Example #15
0
def test_step1b_1():
    assert _PorterAlgorithm('feed').stem(1) == 'feed'
Example #16
0
def test_step5_3():
    assert _PorterAlgorithm('cease').stem(5) == 'ceas'
Example #17
0
def test_step1b_2():
    assert _PorterAlgorithm('agreed').stem(1) == 'agree'
Example #18
0
def test_step5_4():
    assert _PorterAlgorithm('roll').stem(5) == 'roll'
Example #19
0
def test_step1b_4():
    assert _PorterAlgorithm('plastered').stem(1) == 'plaster'
Example #20
0
def test_step5_5():
    assert _PorterAlgorithm('controll').stem(5) == 'control'
Example #21
0
def test_step1b_6():
    assert _PorterAlgorithm('motoring').stem(1) == 'motor'
Example #22
0
def test_step1a_2():
    assert _PorterAlgorithm('ties').stem(1) == 'ti'
Example #23
0
def test_step1b_8():
    assert _PorterAlgorithm('troubled').stem(1) == 'trouble'
Example #24
0
def test_is_consonant():
    assert _PorterAlgorithm('you')._is_consonant('you', 0) == True
Example #25
0
def test_step1b_10():
    assert _PorterAlgorithm('tanned').stem(1) == 'tan'
Example #26
0
def test_step1a_3():
    assert _PorterAlgorithm('caress').stem(1) == 'caress'
Example #27
0
def test_step1b_13():
    assert _PorterAlgorithm('filing').stem(1) == 'file'
Example #28
0
def test_step1a_4():
    assert _PorterAlgorithm('cats').stem(1) == 'cat'
Example #29
0
def test_step1c_2():
    assert _PorterAlgorithm('sky').stem(1) == 'sky'
Example #30
0
def test_step4_12():
    assert _PorterAlgorithm('adoption').stem(4) == 'adopt'