Socket
Socket
Sign inDemoInstall

github.com/halon-extras/language-detection

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/halon-extras/language-detection


Version published
Created
Source

Language detection plugin

This plugin is a wrapper for the whatlanggo natural language detection library.

Installation

Follow the instructions in our manual to add our package repository and then run the below command.

Ubuntu

apt-get install halon-extras-language-detection

RHEL

yum install halon-extras-language-detection

Exported functions

These functions needs to be imported from the extras://language-detection module path.

detect_language(text)

Detect the language of a string.

Params

  • text string - The text

Returns

The language as a string. On error an exception will be thrown.

Example

import { detect_language } from "extras://language-detection";
echo detect_language("This is a text in English"); // "English"

FAQs

Package last updated on 16 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc