Correct grammar for patterns.