Article Preview
Buy Now
FEATURE
REALWord
Checking With Style
Issue: 7.1 (November/December 2008)
Author: JC Cruz
Author Bio: JC is a freelance technical writer living in British Columbia. He writes for various publications, pokes around with Cocoa, Python, and REALbasic, and spends time with his nephew. He can be reached at: anarakisware@gmail.com.
Article Description: No description available.
Article Length (in bytes): 46,096
Starting Page Number: 28
Article Number: 7113
Resource File(s):
project7113.zip Updated: 2013-03-11 19:08:00
Related Web Link(s):
http://www.informatics.sussex.ac.uk/department/docs/punctuation/node00.html
http://en.wikipedia.org/wiki/Punctuation
http://en.wikipedia.org/wiki/Grammar_checker
http://www.rbdeveloper.com/pdfs/sampler.pdf
Excerpt of article text...
In the last two REALWord articles, we learned how a spell-checker works. We got to build a basic spell-check engine, and even improved it by using refactoring and by adding new features. Now, we will study its next of kin: the style checker. We will learn some of the basic rules of styles and how to render each rule as a regex pattern. And we will build a basic style-check engine as a finite-state machine.
The Need For Style
A grammar engine is another feature found in many word processors. With this feature, users can check for and correct any grammar errors in their documents. The grammar engine works by first dividing each sentence into its component words. It then looks at how each word is used and how one word relates to the other. If either usage or relation is wrong, the engine flags the offending word(s) and prompts users for correction. Some engines will display the correct usage; others will even correct the error themselves.
...End of Excerpt. Please purchase the magazine to read the full article.