Ejemplo n.º 1
0
    def test_middle_english_syllabify(self):
        """Test syllabification for middle english"""

        words = ["marchall", "content", "thyne", "greef", "commaundyd"]

        syllabified = [word_me(w).syllabify() for w in words]
        target_syllabified = [
            ["mar", "chall"],
            ["con", "tent"],
            ["thyne"],
            ["greef"],
            ["com", "mau", "ndyd"],
        ]

        assert syllabified == target_syllabified

        syllabified_str = [word_me(w).syllabified_str() for w in words]
        target_syllabified_str = [
            "mar.chall",
            "con.tent",
            "thyne",
            "greef",
            "com.mau.ndyd",
        ]

        assert syllabified_str == target_syllabified_str
Ejemplo n.º 2
0
    def test_middle_english_syllabify(self):
        """Test syllabification for middle english"""

        words = ['marchall', 'content', 'thyne', 'greef', 'commaundyd']

        syllabified = [word_me(w).syllabify() for w in words]
        target_syllabified = [['mar', 'chall'], ['con', 'tent'], ['thyne'], ['greef'], ['com', 'mau', 'ndyd']]

        assert syllabified == target_syllabified

        syllabified_str = [word_me(w).syllabified_str() for w in words]
        target_syllabified_str = ['mar.chall', 'con.tent', 'thyne', 'greef', 'com.mau.ndyd']

        assert syllabified_str == target_syllabified_str