Debian Codegraph @

proselint/checks/spelling/ance_ence.py

raw
1 """-ance vs. -ence."""
2
3 from proselint.tools import memoize, preferred_forms_check
4
5
6 @memoize
7 def check(text):
8 """-ance vs. -ence."""
9 err = "spelling.ance_ence"
10 msg = "-ance vs. -ence. '{}' is the correct spelling."
11
12 preferences = [
13
14 ["appearance", ["appearence"]],
15 ["occurrence", ["occurrance"]],
16 ["resistance", ["resistence"]],
17 ]
18
19 return preferred_forms_check(text, preferences, err, msg)