Grammar filter by rule frequency.