echo "thiissss iissss aa teessttt senteence :p ;)" | ./extended_words.py |./corrected.py or you can use : python simple_linear_regression.py for Handling abbrivations but make sure you have : Training data for the system of learn probable abbreviation for a word.