To close out 2025, I've created an open-source NPM package that addresses the issue of a lack of access to language alphabets worldwide. Drumroll, please, as I introduce "Words Global"!
- Public Link: https://www.npmjs.com/package/words-global
- Source code repository: https://github.com/tawanda-profuse/words-global
I finally did it! After a long time of contemplating whether or not to do it, I finally did. I thought of an idea some time ago to create something and make it publicly available. So I started brainstorming ideas, but everything I came up with either already existed or had a similar solution available. The inspiration for this project came from something I came across while browsing the NPM registry for similar projects. It is a project that last had a contribution over 10 years ago by a guy named Jon Schlinkert. Here's the link: https://github.com/jonschlinkert/alphabet.
If you'd like to try it, you can install it via npm using this command:
npm install words-global
What This Solves
Words Global doesn't solve an everyday use case, but I thought it would be good to have a publicly available JavaScript class that is solely based on text. For example, we have the date object as new Date(), and the math object as Math. And now with Words Global, we have new Alphabet(). Hopefully, the people responsible for maintaining JavaScript and EcmaScript will consider adding this to future versions, and since it is open-source, we should all be able to contribute better improvements.
Some time ago, I was trying to solve a LeetCode problem that heavily relied on text manipulation. The most effective solution would have used regular expressions (RegExp()), but if you're like me, remembering the exact patterns of a regular expression is quite difficult. So I created an array of 26 letters from the English alphabet and managed to solve the coding problem. This is when the idea clicked. What if we had an in-built JavaScript solution for the English alphabet? Since most languages use the same alphabet, it can be reused.
Words Global currently supports English, Arabic, Russian, and French accent letters only. This list of supported languages should grow in the future, and you are more than welcome to contribute to the GitHub repository.
Thanks for reading this. I hope you have a merry festive season and a good start to 2026.
Happy coding👍.
