language-detection

command module
v0.0.0-...-d8cc21e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 4 Imported by: 0

README

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"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL