| 1 |
"""Very. |
| 2 |
|
| 3 |
--- |
| 4 |
layout: post |
| 5 |
source: William Allen White |
| 6 |
source_url: http://bit.ly/1XaMllw |
| 7 |
title: very |
| 8 |
date: 2014-06-10 12:31:19 |
| 9 |
categories: writing |
| 10 |
--- |
| 11 |
|
| 12 |
Substitute 'damn' every time you're inclined to write 'very'; your editor will |
| 13 |
delete it and the writing will be just as it should be. |
| 14 |
|
| 15 |
""" |
| 16 |
from proselint.tools import existence_check, max_errors, memoize |
| 17 |
|
| 18 |
|
| 19 |
@max_errors(1) |
| 20 |
@memoize |
| 21 |
def check(text): |
| 22 |
"""Avoid 'very'.""" |
| 23 |
err = "weasel_words.very" |
| 24 |
msg = ("Substitute 'damn' every time you're " |
| 25 |
"inclined to write 'very'; your editor will delete it " |
| 26 |
"and the writing will be just as it should be.") |
| 27 |
regex = "very" |
| 28 |
|
| 29 |
return existence_check(text, [regex], err, msg) |