Exemplo n.º 1
0
 /**
  * Lookup word data in dictionary.
  *
  * @param string $word
  * @see Index::lookup()    
  * @return array|false
  * @throws DictException
  */
 public function lookup($word)
 {
     if (!($matched = $this->index->lookup($word))) {
         return false;
     }
     $result = [];
     foreach ($matched as $match => $info) {
         $result[$match] = $this->getData($info[0], $info[1]);
     }
     return $result;
 }