You are on page 1of 29

An API to Check Spelling and

Grammar

Raphael Mudge
raffi@automattic.co
m
Overview
 What is After the
Deadline
 Adding AtD into your App
 Resources
Overview
 What is After the
Deadline
 Adding AtD into CiviCRM
 Resources
What is AtD?
 A software service, checks:
Spelling, misused words, style,
and grammar
 Front-end components
 A tool to aid your users
Who should use
AtD?
Content Management Systems
User Generated Content Sites
Web Office Suites

Where people write!


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:
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%
How it works
Integrating AtD
 AtD speaks an XML protocol
 Front-end plugins for:
 jQuery
 TinyMCE
 CKEditor
 Portable to other editors
and…
Caveat Emptor
 AtD works with CiviCRM
but…
CKEditor plugin needs
work
Adding AtD is a hacky
process
How to add AtD
Step 1: Install CKEditor Plugin
cd civicrm/packages/ckeditor
wget http://…/atd-ckeditor.tgz
tar zxvf atd-ckeditor.tgz
How to add AtD
Step 2: Edit ckeditor.php
cd civicrm/packages/HTML
cd QuickForm
vi ckeditor.php
How to add AtD
Server
Open Source – GPL
Modify proxy.php in AtD
CKeditor plugin to change
Places to use AtD
 In the browser
 Firefox Extension
 Bookmarklet for IE/Safari/FF
 WordPress
 IntenseDebate
Resources
http://www.afterthedeadline.co
AtD software
http://blog.afterthedeadline.co
Find this presentation
mailto: raffi@automattic.com
My email, I don’t bite.
In summary…
 What is After the
Deadline
 Adding AtD into your App
 Resources
Resources
http://www.afterthedeadline.co
AtD software
http://blog.afterthedeadline.co
Find this presentation
mailto: raffi@automattic.com
My email, I don’t bite.