diff --git a/examples/plural4.py b/examples/plural4.py index 1238623..b3ec7b4 100644 --- a/examples/plural4.py +++ b/examples/plural4.py @@ -12,7 +12,7 @@ def build_match_and_apply_functions(pattern, search, replace): return re.search(pattern, word) def apply_rule(word): return re.sub(search, replace, word) - return [matches_rule, apply_rule] + return (matches_rule, apply_rule) rules = [] with open('plural4-rules.txt', encoding='utf-8') as pattern_file: diff --git a/generators.html b/generators.html index 829a94a..1bf6c79 100755 --- a/generators.html +++ b/generators.html @@ -271,7 +271,7 @@ $ $ s return re.search(pattern, word) def apply_rule(word): return re.sub(search, replace, word) - return [matches_rule, apply_rule] + return (matches_rule, apply_rule) rules = [] with open('plural4-rules.txt', encoding='utf-8') as pattern_file: