def calc_probs(wordList):
    
    """
    Creates a dictionary of all the words and their associated word count.
    
    Parameters:
        wordlist (list[str]): list containing all of the words of the 
        chosen text
    
    Returns:
        list[str]: a list of all the words
        
        probs (list[float]): a list of corresponding probabilites of all the words
    """
    
    totalWords = len(wordList)
    wordCount = {word:0 for word in wordList}
    
    for word in wordList:
        wordCount[word] += 1
    
    probs = [freq/totalWords for freq in wordCount.values()]
    
    return list(wordCount.keys()), probs