I have a dictionary that looks like this. Please look at it very closely!


Field1 Field2
mainly|chiefly
mainly|fundamentally
mainly|typically
primarily|mainly
primarily|particularly
particularly|specifically
specifically|typically


Can you see how one word is used to replace another, then that word is replaced by another, then that by another? From what I've seen, this could be the source of an infinite loop or a stackoverflow. I tested my program with a small dictionary of names of upto 2000 records, and it worked without problems because each name was unique. The only problem I am having is that, when I use a different dictionary, the code is working 100% percent. I tested it by getting various words from different sections of the dictionary, and put them on my short wordlist, and it worked! There was no problems at all! Can you help with that? Maybe the code needs to be extended alot. The code is a grammar checker with a RichTextBox, a search button, and a contextMenu.