| 1 |
"""Waxed lyrical. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: Fowler's Modern English Usage |
| 6 |
source_url: bit.ly/1YBG8QJ |
| 7 |
title: Waxed lyrical |
| 8 |
date: 2016-03-10 14:48:42 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Fowler's says: |
| 13 |
Its primary meaning 'grow larger, increase' (as opposed to 'wane') leads |
| 14 |
naturally to the sense 'pass into a specified state or mood, begin to use a |
| 15 |
specified tone. In this meaning a following modifier must be an adj. not an |
| 16 |
adverb ('He waxed enthusiastic [not enthusiastically] about Australia'). |
| 17 |
""" |
| 18 |
from proselint.tools import memoize, preferred_forms_check |
| 19 |
|
| 20 |
|
| 21 |
@memoize |
| 22 |
def check(text): |
| 23 |
"""Suggest the preferred forms.""" |
| 24 |
err = "misc.waxed" |
| 25 |
msg = "The modifier following 'waxed' must be an adj.: '{}' is correct" |
| 26 |
|
| 27 |
waxes = ["wax", "waxes", "waxed", "waxing"] |
| 28 |
modifiers = [("ebullient", "ebulliently"), |
| 29 |
("ecstatic", "ecstatically"), |
| 30 |
("eloquent", "eloquently"), |
| 31 |
("enthusiastic", "enthusiastically"), |
| 32 |
("euphoric", "euphorically"), |
| 33 |
("indignant", "indignantly"), |
| 34 |
("lyrical", "lyrically"), |
| 35 |
("melancholic", "melancholically"), |
| 36 |
("metaphorical", "metaphorically"), |
| 37 |
("nostalgic", "nostalgically"), |
| 38 |
("patriotic", "patriotically"), |
| 39 |
("philosophical", "philosophically"), |
| 40 |
("poetic", "poetically"), |
| 41 |
("rhapsodic", "rhapsodically"), |
| 42 |
("romantic", "romantically"), |
| 43 |
("sentimental", "sentimentally") |
| 44 |
] |
| 45 |
|
| 46 |
def pairs(word): |
| 47 |
return [[word + ' ' + pair[0], [word + ' ' + pair[1]]] |
| 48 |
for pair in modifiers] |
| 49 |
|
| 50 |
preferred = [] |
| 51 |
for word in waxes: |
| 52 |
preferred += pairs(word) |
| 53 |
|
| 54 |
return preferred_forms_check(text, preferred, err, msg) |