private void SetupWordList()
    {
        TextTracker tracker = TrackerManager.Instance.GetTracker <TextTracker>();

        if (tracker != null)
        {
            WordList wordList = tracker.WordList;
            wordList.LoadWordListFile(this.mWordListFile);
            if (this.mCustomWordListFile != "")
            {
                wordList.AddWordsFromFile(this.mCustomWordListFile);
            }
            if (this.mAdditionalCustomWords != null)
            {
                foreach (string str in this.mAdditionalCustomWords.Split(new char[] { '\r', '\n' }))
                {
                    if (str.Length > 0)
                    {
                        wordList.AddWord(str);
                    }
                }
            }
            wordList.SetFilterMode(this.mFilterMode);
            if (this.mFilterMode != WordFilterMode.NONE)
            {
                if (this.mFilterListFile != "")
                {
                    wordList.LoadFilterListFile(this.mFilterListFile);
                }
                if (this.mAdditionalFilterWords != null)
                {
                    foreach (string str2 in this.mAdditionalFilterWords.Split(new char[] { '\n' }))
                    {
                        if (str2.Length > 0)
                        {
                            wordList.AddWordToFilterList(str2);
                        }
                    }
                }
            }
        }
    }