MCPcopy Create free account
hub / github.com/clips/pattern / normalize

Function normalize

pattern/text/es/inflect.py:50–51  ·  view source on GitHub ↗
(vowel)

Source from the content-addressed store, hash-verified

48is_vowel = lambda ch: ch in VOWELS
49
50def normalize(vowel):
51 return {u"á":"a", u"é":"e", u"í":"i", u"ó":"o", u"ú":"u"}.get(vowel, vowel)
52
53#### ARTICLE #######################################################################################
54# Spanish inflection of depends on gender and number.

Callers 1

predicativeFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…