Grammar dimensions