//takes one the first word on the range, and checks it for spelling errors
        //***returns true if word is misspelled***
        private bool ProcessWord(MshtmlWordRange word, out int offset, out int length)
        {
            offset = 0;
            length = 0;

            string           otherWord = null;
            SpellCheckResult result;
            string           currentWord = word.CurrentWord;

            if (!word.IsCurrentWordUrlPart() && !WordRangeHelper.ContainsOnlySymbols(currentWord))
            {
                result = _spellingChecker.CheckWord(currentWord, out otherWord, out offset, out length);
            }
            else
            {
                result = SpellCheckResult.Correct;
            }

            if (result != SpellCheckResult.Correct)
            {
                //note: currently using this to not show any errors in smart content, since the fix isn't
                // propagated to the underlying data structure
                if (!word.FilterApplies())
                {
                    return(true);
                }
            }
            return(false);
        }
        //takes one the first word on the range, and checks it for spelling errors
        //***returns true if word is misspelled***
        private bool ProcessWord(MshtmlWordRange word, out int offset, out int length)
        {
            offset = 0;
            length = 0;

            string otherWord = null;
            SpellCheckResult result;
            string currentWord = word.CurrentWord;
            if (!word.IsCurrentWordUrlPart() && !WordRangeHelper.ContainsOnlySymbols(currentWord))
                result = _spellingChecker.CheckWord( currentWord, out otherWord, out offset, out length ) ;
            else
                result = SpellCheckResult.Correct;

            if (result != SpellCheckResult.Correct)
            {
                //note: currently using this to not show any errors in smart content, since the fix isn't
                // propogated to the underlying data structure
                if (!word.FilterApplies())
                {
                    return true;
                }
            }
            return false;
        }