/** * 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')); } }
/** * Parse test phrase and return LimelightResults. * * @return LimelightResults */ protected function getResults() { return self::$limelight->parse('東京に行って、パスタを食べてしまった。おいしかったです!'); }