コード例 #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'