Add reinforce/discourage methods to child. In grammar: extended_grammar/2 creates grammar that extends rhs. Inverse/1 returns a dict that maps rhs to lhs. In viterbi: get_rules/4 returns the rules used in a parse.