public function run($word)
 {
     if (!$this->is_supported_on_server()) {
         throw new NotSupportedOnServerException();
     } else {
         $analyses = null;
         $latin_word = Syllabics::is_syllabic_word($word) ? Syllabics::unicodeToLatinAlphabet($word) : $word;
         $jar_path = realpath(dirname(__FILE__) . "/Uqailaut.jar");
         $command = "java -jar \"{$jar_path}\" {$latin_word}";
         $res = exec($command, $analyses);
         return $analyses;
     }
 }
 public function test_is_syllabic_word()
 {
     $motCodes = array(0x14ef, 0x14c2, 0x1483, 0x1433, 0x1583);
     // sinikpunga
     $mot = utf8::numeric_to_utf8($motCodes);
     $is_syllabic = Syllabics::is_syllabic_word($mot);
     $attendu = true;
     $this->assertEquals($attendu, $is_syllabic, "Cas 1.");
     $motCodes = array(0x14ef, 0x14c2, 0x1483, 0x1433, 0x1583, 65);
     // sinikpunga
     $mot = utf8::numeric_to_utf8($motCodes);
     $is_syllabic = Syllabics::is_syllabic_word($mot);
     $attendu = false;
     $this->assertEquals($attendu, $is_syllabic, "Cas 2.");
 }