-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: LovedJohnySmith
Message 2 in Discussion

Srinivas:                 Please try with Word->SpellCheck class. Let me 
explain with small example here.,   Word.dll has one public class and two 
public methods Step #1. Public Class SpellCheck 
   Include "using Word.dll" at the top of file for the object reference.    
SpellCheck word = new SpellCheck();   Step #2. Public Method CheckSpelling 
This method will check the word and return true or false. If the word is 
correct then it will return true otherwise false.    bool status = false;
   status = word.CheckSpelling("Program");   Step #3. Public Method 
GetSpellingSuggestions 
This method will return the collection of suggested words.  foreach(string 
suggestion in word.GetSpellingSuggestions("Program")) 
 {
    System.Console.WriteLine( suggestion ); 
 }   Now you can get collection of "Program" word frequencies.     Also I would 
like to recommend parsing techniques here... 
Parser Technique   Step #1: Connect to spellcheck.net site and pass the word. 
Step #2: Look for the word "correctly." in html file, if found return true 
Step #3: else look for the word "misspelled.", if found return false. regular 
expression    pattern @"(correctly.)|(misspelled.)" 
Step #4: If the word misspelled found in html then look for the word 
"suggestions:"    regular expression pattern  @"(suggestions:)" 
Step #5: and parse the string between <blockquote> regular expression pattern   
  @"<blockquote>(?:\s*([^<]+) \s*)+ </blockquote>" 
Step #6: and finally return the collection of suggested words.        Thanx, 
Smith

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to