yichiang / plain-language-checker

MIT License
1 stars 1 forks source link

Minimize abbreviations #15

Open yichiang opened 1 year ago

yichiang commented 1 year ago

Referenced in https://www.plainlanguage.gov/guidelines/words/minimize-abbreviations/. We can try detecting these by looking for a word with ALL CAPS between parenthesis. We could try to see if the words before look like the definition by looking at the starting letters of the previous words, examples:

If we find an abbreviation without a definition we could raise an issue in the report. We could also have a list of common acronyms like IBM, ATM, BMW, PhD, CIA, and FBI that don’t require a definition.

adelapen commented 1 year ago

This seems useful as well: https://stackoverflow.com/questions/17572873/how-can-i-check-if-a-string-is-all-uppercase-in-javascript