Exemplo n.º 1
0
 /**
  * @param string $partOfSpeech
  * @param string[] $grammems
  * @return phpMorphy_Dict_Ancode
  */
 protected function createAncode($partOfSpeech, $grammems)
 {
     $ancode = new phpMorphy_Dict_Ancode(null, $partOfSpeech, false, $grammems);
     return $this->source->appendAncode($ancode);
 }
Exemplo n.º 2
0
 /**
  * @param phpMorphy_MorphyInterface $morphy
  * @return phpMorphy_Dict_Source_Mutable
  */
 protected function createMutableSource(phpMorphy_MorphyInterface $morphy)
 {
     $source = new phpMorphy_Dict_Source_Mutable();
     $source->setLanguage($morphy->getLocale());
     return $source;
 }