diff --git a/easyPythonpi/methods/stringmainpulation.py b/easyPythonpi/methods/stringmainpulation.py index ef63674..296575a 100644 --- a/easyPythonpi/methods/stringmainpulation.py +++ b/easyPythonpi/methods/stringmainpulation.py @@ -1,6 +1,14 @@ +""" +Simple string manipulation great for data cleaning and processing for e.g. tokenization or ML models. All methods are self-explanatory: +remove_punctuation removes all punctuation +count_vowels counts the number of vowels in a string and returns a dictionary with count +is_palindrome checks if the given string is a palindrome or not and returns a boolean value +""" + import easyPythonpi as pi import regex as re + def remove_punctuation(my_str:'str')->'str': punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~''' # remove punctuations from the string