def open_text(filename):
    """Reads a text line by line, applies light preprocessing, and returns an array of words"""

    def preprocess(word):
        return word.strip()

    with open(filename, encoding='iso-8859-2') as f:
        content = f.readlines()

    return [preprocess(word) for word in content]