Renamed text to language and added functiond for sentence and paragraph