cfinke / Typo.js

A client-side JavaScript spellchecker that uses Hunspell-style dictionaries.
Other
501 stars 110 forks source link

Reconcile new Typo.js version? #54

Open connor4312 opened 7 years ago

connor4312 commented 7 years ago

Hi. We worked on an updated Typo.js version, but its scope is a bit out from a simple fork; it's more of a wholesale port. General changelog:

I wanted to ask if you're interested in merging this back in to make "typo.js 2.0" or if you're happy as is 😄

Cheers, Connor

cfinke commented 7 years ago

Wow! Although I don't think that moving Typo.js to TypeScript is in the roadmap, I am intrigued by the Faroo spell check. Any advice for implementing it in vanilla JS?

connor4312 commented 7 years ago

Sorry for the late reply, holidays and stuff 😛

You should mostly be able to strip the type annotations and have it work in ES6. If you want to support non-ES6 platforms without a transpiler you'd have to swap out many of the constructs/keywords too, but for the most part it should be a 1:1 port.