Beispiel #1
0
    def test_middle_high_german_ascii_encoding(self):
        """
        Test MHG ASCII encoder
        """
        s1 = mhg.Word("vogellîn").ASCII_encoding()
        s2 = mhg.Word("vogellīn").ASCII_encoding()
        target = ['vogellin','vogellin']

        self.assertEqual([s1,s2], target)
Beispiel #2
0
    def test_middle_high_german_soundex(self):
        """
        Test MHG Soundex Phonetic Index
        """
        w1 = mhg.Word("krêatiure").phonetic_indexing(p="SE")
        w2 = mhg.Word("kreatur").phonetic_indexing(p="SE")
        target = ['K535','K535']

        self.assertEqual([w1,w2], target)