www.xbdev.net
xbdev - software development
Saturday June 12, 2021
home | about | contact | Donations

     
 

HTML5 and Javascript

Example based approach ....

 


Typo is a browser based spell check program - it was written to be as simple and as flexible as possible. It doesn't depend on any libraries and is quiet robust - importantly it can run independently in the browser (even locally).

* Very easy to add in extra features, to identify synonyms and weak words.
* Can be optimized to load libraries/dictionaries on the fly
* The lookup system can be improved to use a binary search for example (performance)
* Just for fun, there is interactive editor below, so you can type in words - error words are highlighted yellow

Try typing some words here run them through the Typo checker:
Type here


Click on the tab to select the option, edit the scripts in the output underneath (edit and play around with the implementation):





Possible extra features to add:
* Add extra checks for punctuation (e.g., ignore full stops and commas)
* Optimize the code further, so it's capable of parsing very large files
* Improve the test interface (different colors/graphics)



Resources

* Download full source code [link]
* Misc Javascript Tutorials [Link]
* Online Editor/Compiler [Link]
* Beautiful Code Highlighting [Link]



 

 
 Visitor: 9534626
{ 229.27.38.75 }
Copyright (c) 2002-2020 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.