rename resources 'grammar' => 'rule'