| 1 |
"""Redundant Acronym Syndrome (RAS) syndrome.""" |
| 2 |
|
| 3 |
from proselint.tools import memoize, preferred_forms_check |
| 4 |
|
| 5 |
|
| 6 |
@memoize |
| 7 |
def check(text): |
| 8 |
"""Suggest the preferred forms.""" |
| 9 |
err = "garner.redundancy.ras" |
| 10 |
msg = "RAS syndrome. Use '{}' instead of '{}'." |
| 11 |
|
| 12 |
redundancies = [ |
| 13 |
["ABM", ["ABM missile"]], |
| 14 |
["ACT", ["ACT test"]], |
| 15 |
["ABMs", ["ABM missiles"]], |
| 16 |
["ABS", ["ABS braking system"]], |
| 17 |
["ATM", ["ATM machine"]], |
| 18 |
["CD", ["CD disc"]], |
| 19 |
["CPI", ["CPI Index"]], |
| 20 |
["GPS", ["GPS system"]], |
| 21 |
["GUI", ["GUI interface"]], |
| 22 |
["HIV", ["HIV virus"]], |
| 23 |
["ISBN", ["ISBN number"]], |
| 24 |
["LCD", ["LCD display"]], |
| 25 |
["PDF", ["PDF format"]], |
| 26 |
["PIN", ["PIN number"]], |
| 27 |
["RAS", ["RAS syndrome"]], |
| 28 |
["RIP", ["RIP in peace"]], |
| 29 |
["RSVP", ["please RSVP"]], |
| 30 |
["SALT", ["SALT talks"]], |
| 31 |
["SAT", ["SAT test"]], |
| 32 |
["UPC", ["UPC codes"]], |
| 33 |
] |
| 34 |
|
| 35 |
return preferred_forms_check(text, redundancies, err, msg) |