dotnaught / spellerizer Goto Github PK
View Code? Open in Web Editor NEWAn extension for Google Chrome that allows you to replace words with US spellings in The Register articles with UK spellings.
License: GNU General Public License v2.0
An extension for Google Chrome that allows you to replace words with US spellings in The Register articles with UK spellings.
License: GNU General Public License v2.0
As stated in your article, currently you just replace "check" with "cheque" because you are only operating on individual words.
If you replaced the check match with ((a|the)\s)?check
then you would match "a check" or "the check", and you would just have to replace it with '\1cheque(although you might want to replace the central section manually to case match it). You could also add a
check( please)` match.
You could alternatively specify it in the JSON as a context prefix/suffix where you would specify it as a regex (and when building the actual regex, add the case insensitive flag and probably lookahead/look behind so the context matched could also be replaced if needed.
I am using check as an example, I'm sure that there are other words that would benefit from context matching.
Edit: I have just read your article further, and noticed that the spelling_data.json file was not written by you and this would require changes to that file / format
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.