Add spell checker to writing function