| 1 |
"""Commercialese. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: Garner's Modern American Usage |
| 6 |
source_url: http://bit.ly/1T4alrY |
| 7 |
title: commercialese |
| 8 |
date: 2014-06-10 12:31:19 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Commercialese. |
| 13 |
|
| 14 |
""" |
| 15 |
from proselint.tools import existence_check, memoize |
| 16 |
|
| 17 |
|
| 18 |
@memoize |
| 19 |
def check(text): |
| 20 |
"""Check the text.""" |
| 21 |
err = "misc.commercialese" |
| 22 |
msg = "'{}' is commercialese." |
| 23 |
|
| 24 |
commercialese = [ |
| 25 |
"acknowledging yours of", |
| 26 |
"beg to advise", |
| 27 |
"enclosed herewith", |
| 28 |
"enclosed please find", |
| 29 |
"further to yours of", |
| 30 |
"further to your letter", |
| 31 |
"in regard to", |
| 32 |
r"inst\.", |
| 33 |
"in the amount of", |
| 34 |
"of even date", |
| 35 |
"pending receipt of", |
| 36 |
"please be advised that", |
| 37 |
"please return same", |
| 38 |
"pleasure of a reply", |
| 39 |
r"prox\.", |
| 40 |
"pursuant to your request", |
| 41 |
"regarding the matter", |
| 42 |
"regret to inform", |
| 43 |
"thanking you in advance", |
| 44 |
"the undersigned", |
| 45 |
"this acknowledges your letter", |
| 46 |
r"ult\." |
| 47 |
"we are pleased to note", |
| 48 |
"with regard to", |
| 49 |
"your favor has come to hand", |
| 50 |
"yours of even date" |
| 51 |
] |
| 52 |
|
| 53 |
return existence_check(text, commercialese, err, msg, join=True) |