Ejemplo n.º 1
0
 /**
  * Set missing parameters for kana words that were not parsed.
  */
 private function setMissingParameters()
 {
     if (!$this->hasKanji($this->word) && !isset($this->reading)) {
         $this->reading = $this->word;
         $this->pronunciation = $this->word;
         $results = $this->limelight->noParse($this->word(), ['Romaji'], true);
         $this->setPluginData('Romaji', $results->string('romaji'));
     }
 }
Ejemplo n.º 2
0
 /**
  * Parse test phrase and return LimelightResults.
  *
  * @return LimelightResults
  */
 protected function getResults()
 {
     return self::$limelight->parse('東京に行って、パスタを食べてしまった。おいしかったです!');
 }