Registry / utility / cld
library0.13.0rbrubygemsunverified

Compact Language Detection for Ruby, identifying the language of text snippets.

gem install cld
INSTALL
IMPORT
SIG · CLD
C
cld
utilityrubyv0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CLD
require 'cld'

Detect the language of a text string.

require 'cld' lang = CLD.detect_language('Hello world') puts lang[:name]
Debug
Known issues
gotchaRequires a C++ compiler and ICU data to build from source.
fix
Install the gem with system dependencies or use a pre-built binary.
affects: >= 0.13.0
Upgrade
Version history
0.13.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
cld — gem install cld · libregistry