Debian Codegraph @

proselint/checks/spelling/ely_ly.py

raw
1 """-ely vs. -ly."""
2
3 from proselint.tools import memoize, preferred_forms_check
4
5
6 @memoize
7 def check(text):
8 """-ely vs. -ly."""
9 err = "spelling.ely_ly"
10 msg = "-ely vs. -ly. '{}' is the correct spelling."
11
12 preferences = [
13
14 ["completely", ["completly"]],
15 ["immediately", ["immediatly"]],
16 ["unfortunately", ["unfortunatly"]],
17 ]
18
19 return preferred_forms_check(text, preferences, err, msg)