public DictionarySource() {
        this.dictionaryWords = new LinkedList<>();
        this.dictionaryWords.add("jetblue"); // supplementing dictionary for passing testing.
        try (
                InputStream dictStream = this.getClass().getResourceAsStream("american-english.txt");
                BufferedReader dictReader = new BufferedReader(new InputStreamReader(dictStream));) {
            String word;
            while (true) {
                word = dictReader.readLine();
                if (word == null) {
                    break;
                }
                if (!word.isEmpty()) {
                    this.dictionaryWords.add(word.toLowerCase()); // making the dictionary all lower case for faster comparisons.
                }
            }
        } catch (IOException ex) {
            Logger.getLogger(DictionarySource.class.getName()).log(Level.SEVERE, null, ex);
        }
    }