MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / _build_mapping

Function _build_mapping

scripts/website/americanize_spelling.py:71–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def _build_mapping():
72 m = dict(IRREGULAR)
73 for stem in IZE_STEMS:
74 m[stem + "ise"] = stem + "ize"
75 m[stem + "ised"] = stem + "ized"
76 m[stem + "ises"] = stem + "izes"
77 m[stem + "ising"] = stem + "izing"
78 m[stem + "isation"] = stem + "ization"
79 m[stem + "isations"] = stem + "izations"
80 for stem in YSE_STEMS:
81 m[stem + "yse"] = stem + "yze"
82 m[stem + "ysed"] = stem + "yzed"
83 m[stem + "yses"] = stem + "yzes"
84 m[stem + "ysing"] = stem + "yzing"
85 return m
86
87
88MAPPING = _build_mapping()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected