Commits

Lars Yencken  committed c554234

Fixes devoicing, adding missing characters and filling out table.

  • Participants
  • Parent commits 3fe1bd6

Comments (0)

Files changed (2)

File src/gpaligner/Japanese.scala

         set
     }
 
-    val devoiceMap = Map("がだざびぴじばぱ".zip("かたさひひしはは") : _*)
+    val devoiceMap = Map(
+        "がぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽ".zip(
+        "かきくけこさしすせそたちつてとはひふへほはひふへほ") : _*)
 
     def isVoiced(s: String): Boolean = devoiceMap contains s(0)
 

File test/gpaligner/AlignmentGeneratorTest.scala

   }
 
   @Test
-  def testKanjidicMatches = {
+  def testKanjidicConstraints = {
     val input = GPPair("紫綬褒章", "しじゅほうしょう")
     val alignments = (new KanjidicGenerator).generate(input)
     assert(alignments.length == 1)