Ultra Simple Python Library to case text differently for vowels and consonants, and analyze the amount of those.
Install directly from GitHub:
pip install git+https://github.com/gioyous-it/casescan.gitimport casescan
print(casescan.apply("Hello World!")) print(casescan.analyze("Hello World!"))
Transforms text by uppercasing vowels and lowercasing everything else.
Example:
casescan.apply("Hello WORLD!")
Returns:
hEllO wOrld!
Analyzes a string and returns:
(vowels, consonants, other_characters)
Example:
casescan.analyze("Hello!")
Returns:
(2, 3, 1)
CaseScan is released under the CC0 1.0 Universal public domain dedication.