MCPcopy Index your code
hub / github.com/clips/pattern / has_vowel

Function has_vowel

pattern/vector/stemmer.py:92–97  ·  view source on GitHub ↗

Returns True if there is a vowel in the given string.

(w)

Source from the content-addressed store, hash-verified

90 return len(w)
91
92def has_vowel(w):
93 """ Returns True if there is a vowel in the given string.
94 """
95 for ch in w:
96 if ch in VOWELS: return True
97 return False
98
99def vowel_consonant_pairs(w, max=None):
100 """ Returns the number of consecutive vowel-consonant pairs in the word.

Callers 1

step_1bFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…