mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-10-04 15:11:57 +00:00
Update server.py
This commit is contained in:
parent
8209af0105
commit
bdabc784d9
|
@ -563,7 +563,7 @@ def calculate_vowel_ratio(s):
|
|||
vowel_count = sum(1 for char in s if char.lower() in 'aeiouwy')
|
||||
|
||||
# Define vowel-ending patterns
|
||||
vowel_ending_patterns = ['ang', 'eng', 'ing', 'ong', 'ung']
|
||||
vowel_ending_patterns = ['ang', 'eng', 'ing', 'ong', 'ung', 'ank', 'ink', 'dge']
|
||||
|
||||
# Count the occurrences of vowel-ending patterns in the string.
|
||||
vowel_count += sum(s.count(pattern) for pattern in vowel_ending_patterns)
|
||||
|
|
Loading…
Reference in New Issue
Block a user