Create PATTERNS constant.