An open API service indexing awesome lists of open source software.

https://github.com/haileybot/language-detector

Basic library to roughly determine the language of input text
https://github.com/haileybot/language-detector

detection language language-detection language-processing node nodejs npm npm-package

Last synced: 10 months ago
JSON representation

Basic library to roughly determine the language of input text

Awesome Lists containing this project

README

          

[![License](https://img.shields.io/github/license/HaileyBot/language-detector?color=d32)](https://github.com/HaileyBot/language-detector/blob/master/LICENSE)
[![NPM version](https://img.shields.io/npm/v/@haileybot/language-detector.svg?maxAge=3600&color=d52)](https://www.npmjs.com/package/@haileybot/language-detector)
[![NPM downloads](https://img.shields.io/npm/dt/@haileybot/language-detector.svg?maxAge=3600&color=db0)](https://www.npmjs.com/package/@haileybot/language-detector)
[![Dependencies](https://img.shields.io/david/HaileyBot/language-detector.svg?maxAge=3600&color=2c1)](https://david-dm.org/HaileyBot/language-detector)
[![PayPal](https://img.shields.io/badge/donate-paypal-13e)](https://donate.haileybot.com)
[![Portfolio](https://img.shields.io/badge/-view%20portfolio-blueviolet)](https://cheesits456.dev)

# Language Detector

Language Detector is a basic library to roughly determine the language of given input text.

## Installation

Use the package manager [npm](https://www.npmjs.com/) to install Language Detector

```bash
npm i @haileybot/language-detector
```

## Usage

```js
const detectLang = require("@haileybot/language-detector");

console.log(detectLang("This will print 'en' to the console"));
```

## License
This project is licensed under [AGPL-3.0](https://github.com/HaileyBot/language-detector/blob/master/LICENSE)