diff --git a/scripts/generate.py b/scripts/generate.py index a593aa9..26fa051 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -19,7 +19,7 @@ def load_tmpl(tmpl: str) -> Template: def up_or_title(pvd: str, s: str) -> str: if s in cfg.UPPER_WORDS.get(pvd, ()): return s.upper() - elif s in cfg.TITLE_WORDS.get(pvd, {}): + if s in cfg.TITLE_WORDS.get(pvd, {}): return cfg.TITLE_WORDS[pvd][s] return s.title()