counting / utils /text_utils.py
spagestic's picture
Refactor and expand math tools application with new features and improved documentation
46ee226
raw
history blame
192 Bytes
"""
Utility functions for text processing.
"""
def letter_counter(word, letter):
"""Count the occurrences of a specific letter in a word."""
return word.lower().count(letter.lower())