| 1 |
"""False plurals. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: Garner's Modern American Usage |
| 6 |
source_url: http://bit.ly/1T4alrY |
| 7 |
title: False plurals. |
| 8 |
date: 2014-06-10 12:31:19 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Using the incorrect form of the plural. |
| 13 |
|
| 14 |
""" |
| 15 |
from proselint.tools import existence_check, memoize, preferred_forms_check |
| 16 |
|
| 17 |
|
| 18 |
@memoize |
| 19 |
def check(text): |
| 20 |
"""Suggest the preferred forms.""" |
| 21 |
err = "misc.false_plurals.examples" |
| 22 |
msg = "The plural is {}" |
| 23 |
|
| 24 |
preferences = [ |
| 25 |
["talismans", ["talismen"]], |
| 26 |
["phenomena", ["phenomenons"]], |
| 27 |
] |
| 28 |
|
| 29 |
return preferred_forms_check(text, preferences, err, msg) |
| 30 |
|
| 31 |
|
| 32 |
@memoize |
| 33 |
def check_kudos(text): |
| 34 |
"""Check the text.""" |
| 35 |
err = "misc.false_plurals.kudos" |
| 36 |
msg = "Kudos is singular." |
| 37 |
|
| 38 |
return existence_check(text, ["many kudos"], err, msg) |