示例#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'