You are on page 1of 30

An API to Check Spelling and Grammar

Raphael Mudge
raffi@automattic.com
Overview
 What is After the Deadline
 How it Works
 Adding AtD into your App
 Resources
What is AtD?
 A software service, checks:
Spelling, misused words, style, and
grammar
 Front-end components
 A tool to aid your users
What is AtD?
 A software service, checks:
What is AtD?
 A software service, checks:
What is AtD?
 A software service, checks:
What is AtD?
 A software service, checks:
How it works
How AtD *really* works…
What can I do?
P(word) = count(word) / total

Pn(word|previous) = count(previous word) / count(previous)

Pp(word|next) = Pn(next|word) x P(next) / P(word)

I know about the fit of “do” in “don’t do that” from:


Pn( do | don’t )
Pp( do | that )
P(do)
Grammar Checker
 The error:
I wonder if this is your companies
way of providing support?
Grammar Checker
 The error:
I wonder if this is your companies
way of providing support?
Grammar Checker
 The error:
I wonder if this is your companies
way of providing support?
The rule:
Pattern: your .*/NNS
Suggestion: your \1:possessive
Grammar Checker
How AtD sees the sentence:
 I/PRP wonder/VBP if/IN this/DT is/VBZ
your/PRP$ companies/NNS way/NN of/IN
providing/VBG support/NN

How AtD sees it:


your companies way = 0.000004%
your company's way = 0.000030%
and…
Who should use AtD?
Content Management Systems
User Generated Content Sites
Web Office Suites

Any where people are writing!


Server
Open Source – GPL
Requires:
Java 1.6.0
4GB of RAM
Integrating AtD
 AtD speaks an XML protocol
 Front-end plugins for:
 jQuery
 TinyMCE
Issues
Cross-domain AJAX?
Use a proxy script
Tunnel data over remote CSS
Resources
http://open.afterthedeadline.com
Server software
http://www.afterthedeadline.com
Front-end plugins
mailto: raffi@automattic.com
My email, I don’t bite.
In summary…
 What is After the Deadline
 How it works
 Adding AtD into your App
 Resources
Resources
http://open.afterthedeadline.com
Server software
http://www.afterthedeadline.com
Front-end plugins
mailto: raffi@automattic.com
My email, I don’t bite.

You might also like