TLDR Web Dev · ARTICLES & TUTORIALS

USING AI IN THE BROWSER FOR TYPO REWRITING

raymondcamden.com7 min read

Summary from the TLDR Web Dev newsletter

Chrome's new built-in AI APIs can be used to correct typos in user input. This article experiments with both the general-purpose Prompt API and the Rewriter API, providing code snippets and examples of their performance on deliberately misspelled text. The Prompt API produced cleaner, but slightly altered results, while the Rewriter API stayed closer to the original phrasing but sometimes failed to correct all errors.