Пример #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);
 }
Пример #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;
 }