Data Formatting
General Info
Useful Snippets

9.0.23 return nth word in a string

Example:

def return_nth_word(text, n):
    "specify the position of the word you want to return and this function returns that word, such as n = 0 "
    token_list = word_tokenize(text)  # Tokenize the string by converting each word to an item in a list
    word_n = token_list[n]
    return(word_n)