Grammar games