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