Language Detector is a basic library to roughly determine the language of given input text.
Use the package manager npm to install Language Detector
npm i @haileybot/language-detector
const detectLang = require("@haileybot/language-detector");
console.log(detectLang("This will print 'en' to the console"));
This project is licensed under AGPL-3.0