def cleanLine( s ):
    """Given a string s, remove designated punctuation and convert others:
    non-ascii single quotes to ascii equivalents; underscore and dash
    to space."""

    # Create a translation table that maps any character in string
    # toRemove to a None.  Also translates the non-ascii single quote
    # to an ascii single quote and underscore/dash to blank.

    toTranslate = "\u2018\u2019\u2010\u2014\u2012-"
    translateTo = "''    "
    toRemove = ".,;:?$()[]\u201C\u201D\u00A3"
    translationTable = str.maketrans(toTranslate, translateTo, toRemove)
    
    # Use the translate() method to apply the mapping to string s
    translatedText = s.translate(translationTable)

    # print("Translated Text:", translatedText)
    return translatedText

# We won't put these common words in the dictionary:
wordsToExclude = ['a', 'about', 'after', 'all', 'also', 'am', 'an', 'and',
                  'any', 'are', 'as', 'at', 'back', 'be', 'because',
                  'but', 'by', 'can', 'come', 'could', 'day', 'do',
                  'even', 'first', 'for', 'from', 'get', 'give', 'go',
                  'good', 'had', 'have', 'he', 'her', 'him', 'his',
                  'how', 'i', 'if', 'in', 'into', 'is', 'it', 'its',
                  'just', 'know', 'like', 'look', 'make', 'man', 'me',
                  'men', 'most', 'my', 'new', 'no', 'not', 'now',
                  'of', 'on', 'one', 'only', 'or', 'other', 'our',
                  'out', 'over', 'people', 'said', 'say', 'see',
                  'she', 'so', 'some', 'take', 'than', 'that', 'the',
                  'their', 'them', 'then', 'there', 'these', 'they',
                  'think', 'this', 'time', 'to', 'two', 'up', 'us',
                  'use', 'want', 'was', 'way', 'we', 'well', 'went',
                  'were', 'what', 'when', 'which', 'who', 'will',
                  'with', 'work', 'would', 'year', 'you', 'your']

