Méthode | Description | |
---|---|---|
createDatabase ( ) | Helper method the generate the database. The JMDict file my be downloaded separately | |
getRadicals ( array $verb, $form ) : array | Inflects radical for the given verb to the given form | |
getVerb ( $verb ) : array | Gets a verb entry from the database using either Kanji, Hiragana or Romaji | |
inflect ( $verb, array $forms = [] ) : array | Inflects the verb to given forms or all if none input |
Méthode | Description | |
---|---|---|
inflectForm ( array $verb, array $mappings, $form ) : array | Generates conjugation for the given verb to the given type using the given mappings | |
makeVerbMapping ( array &$verb ) : array | Generates stub mapping for a given verb type | |
makeVerbMappings ( ) : array | Generates full mapping for all known verb types |
public static createDatabase ( ) |
public static getRadicals ( array $verb, $form ) : array | ||
$verb | array | |
$form | ||
Résultat | array |