Example #1
0
 def test_rule_3(self):
     words = [
         "έ-τρε-χε", "νυ-χτε-ρί-δα", "κα-λα-μπό-κι", "μπρο-κο-λο",
         "μαΐ-ντα-νός", "α-τμός"
     ]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #2
0
 def test_rule_10(self):
     words = [
         "αί-θου-σα", "αη-δό-νι", "λευ-κός", "πη-γαί-νω", "ου-ρα-νός",
         "γάι-δα-ρος", "ναύ-της", "ά-γιος", "κα-μπά-να", "κα-ντή-λι",
         "α-γκι-να-ρα", "κα-τσί-κα", "γυα-λί", "ευ-χή"
     ]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #3
0
 def test_rule_9(self):
     words = ["πέ-ντε", "μπα-μπάς"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #4
0
 def test_rule_7(self):
     words = ["άλ-λος", "πολ-λά"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #5
0
 def test_rule_4a(self):
     words = ["άν-θρω-πος"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #6
0
 def test_rule_4(self):
     words = ["ε-χθρι-κό", "α-στρά-φτω", "σφυ-ρί-χτρα"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #7
0
 def test_rule_3a(self):
     words = ["καρ-διά", "έρ-χο-μαι"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #8
0
 def test_rule_2(self):
     words = ["μά-τι", "κυ-νη-γώ"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))
Example #9
0
 def test_rule_1(self):
     words = ["έ-να", "ό-λα", "έ-χω"]
     for word in words:
         self.assertEquals(word.split("-"), syllabify(word.replace("-",
                                                                   "")))