Beispiel #1
0
def test_syllabify_umlaut_u_e():
    word = "güegüecho"
    output = ['güe', 'güe', 'cho']
    assert syllabify(word)[0] == output
Beispiel #2
0
def test_syllabify_umlaut_hyatus_with_consonant_1():
    word = "insacïable"
    output = ['in', 'sa', 'cï', 'a', 'ble']
    assert syllabify(word)[0] == output
Beispiel #3
0
def test_syllabify_group_6():
    word = "año"
    output = ['a', 'ño']
    assert syllabify(word)[0] == output
Beispiel #4
0
def test_syllabify_group_7():
    word = "desvirtúe"
    output = ['des', 'vir', 'tú', 'e']
    assert syllabify(word)[0] == output
Beispiel #5
0
def test_syllabify_alternatives():
    word = "arcaizabas"
    output = (['ar', 'ca', 'i', 'za', 'bas'], (1, 2))
    assert syllabify(word, alternative_syllabification=True) == output
Beispiel #6
0
def test_syllabify_exceptions_en_3():
    word = "desenmarañados"
    output = ['de', 'sen', 'ma', 'ra', 'ña', 'dos']
    assert syllabify(word)[0] == output
Beispiel #7
0
def test_syllabify_group_3():
    word = "yihad"
    output = ['yi', 'had']
    assert syllabify(word)[0] == output
Beispiel #8
0
def test_syllabify_umlaut_u_i():
    word = "güito"
    output = ['güi', 'to']
    assert syllabify(word)[0] == output
Beispiel #9
0
def test_syllabify_group_1():
    word = "antihumano"
    output = ['an', 'tihu', 'ma', 'no']
    assert syllabify(word)[0] == output
Beispiel #10
0
def test_syllabify_group_2():
    word = "entrehierro"
    output = ['en', 'tre', 'hie', 'rro']
    assert syllabify(word)[0] == output
Beispiel #11
0
def test_syllabify_tl():
    word = "atlante"
    output = ['a', 'tlan', 'te']
    assert syllabify(word)[0] == output
Beispiel #12
0
def test_syllabify_exceptions_prefix_sin_consonant():
    word = "sinhueso"
    output = ['sin', 'hue', 'so']
    assert syllabify(word)[0] == output
Beispiel #13
0
def test_syllabify_exceptions_prefix_des_consonant():
    word = "destapar"
    output = ['des', 'ta', 'par']
    assert syllabify(word)[0] == output
Beispiel #14
0
def test_syllabify_umlaut_hyatus_with_consonant_2():
    word = "ruïdo"
    output = ['ru', 'ï', 'do']
    assert syllabify(word)[0] == output
Beispiel #15
0
def test_syllabify_group_4():
    word = "coche"
    output = ['co', 'che']
    assert syllabify(word)[0] == output
Beispiel #16
0
def test_syllabify_umlaut_hyatus_with_vowel():
    word = "ruëa"
    output = ['ru', 'ë', 'a']
    assert syllabify(word)[0] == output
Beispiel #17
0
def test_syllabify_group_4_rl():
    word = "abarloar"
    output = ['a', 'bar', 'lo', 'ar']
    assert syllabify(word)[0] == output
Beispiel #18
0
def test_syllabify_umlaut_u_i_tilde():
    word = "agüío"
    output = ['a', 'güí', 'o']
    assert syllabify(word)[0] == output
Beispiel #19
0
def test_syllabify_group_5():
    word = "checo"
    output = ['che', 'co']
    assert syllabify(word)[0] == output
Beispiel #20
0
def test_syllabify_alternatives_2():
    word = "puntual"
    output = (['pun', 'tu', 'al'], (1, 2))
    assert syllabify(word, alternative_syllabification=True) == output
Beispiel #21
0
def test_syllabify_exceptions_en_2():
    word = "desentender"
    output = ['de', 'sen', 'ten', 'der']
    assert syllabify(word)[0] == output