We use this library at GitHub to detect blob languages, highlight code, ignore binary files, suppress generated files in diffs, and generate language breakdown graphs.
Flay analyzes code for structural similarities. Differences in literal values, variable, class, method names, whitespace, programming style, braces vs do/end, etc are all ignored. Making this totally rad. == Features/Problems: * Reports differences at any level of code. * Adds a score multiplier to identical nodes. * Differences in literal values, variable, class, and method names are ignored. * Differences in whitespace, programming style, braces vs do/end, etc are ignored. * Works across files. * Add the flay-persistent plugin to work across large/many projects. * Run --diff to see an N-way diff of the code. * Provides conservative (default) and --liberal pruning options. * Provides --fuzzy duplication detection. * Language independent: Plugin system allows other languages to be flayed. * Ships with .rb and .erb. * javascript and others will be available separately. * Includes FlayTask for Rakefiles. * Uses path_expander, so you can use: * dir_arg -- expand a directory automatically * @file_of_args -- persist arguments in a file * -path_to_subtract -- ignore intersecting subsets of files/directories * Skips files matched via patterns in .flayignore (subset format of .gitignore). * Totally rad.
WhatLanguage rapidly detects the language of a sample of text
GitLab Language detection
Compact Language Detection for Ruby
Cross-language temporary (disposable/throwaway) email detection library. Covers 1979 fake email providers. http://twitter.com/FGRibreau
LanguageFilter is a Ruby gem to detect and optionally filter various categories of language.
Language Detection API Client
Compact Language Detection for Ruby
Perform unsupervised language detection, specifically for the purpose of finding English-language tweets.
Ruby language detection library using n-gram model
Ruby bindings for Chromium Compact Language Detector
Language detection
WhatLanguage rapidly detects the language of a sample of text
Compact Language Detection for Ruby
Language detection library for Ruby
Highly accurate language detection library, uses naive bayesian filter.
Detects the language of a given text by scoring its words against per-language word-frequency lists. Ships with wordlists for 72 languages.
NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, grammar and spelling correction, keywords and keyphrases extraction, chatbot, product description and ad generation, intent classification, text generation, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, speech synthesis, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API. This is the Ruby client for the API. More details here: https://nlpcloud.com. Documentation: https://docs.nlpcloud.com.
Subtitle gem helps you to detect the language(s) of the caption file, translate closed caption to another language and also supports transforming from one format to another. Say for example from dfxp to srt or vtt or to all supported formats."
WhatLanguage rapidly detects the language of a sample of text
Ruby Gem for Dandelion API service. Available endpoint: Entity Extraction, Text Similarity and Language Detection
Small language detection gem using detectlanguage.com api. Heavily inspired by the wtf_lang gem
Exposes the ThatLanguage language-detection library over HTTP as eight JSON endpoints. Packaged as a gem rather than an application; the deployment supplies the web server.
Analyses your Gemfile.lock for dependency health across the full transitive graph: whether each gem is actively maintained (last activity on GitHub, GitLab, or Codeberg/Forgejo, plus release recency), outdated versions, archived repos, OpenSSF Scorecard scores, known vulnerabilities (deps.dev and OSV, merged with ruby-advisory-db, flagging advisories with no fix and pins that sit below the fix), poison-pill compatibility ceilings, and libyear drift. Ruby version freshness with EOL detection. The same maintenance lens travels cross-ecosystem: point --sbom at a CycloneDX SBOM to assess npm, PyPI, Cargo, Go, Maven, and NuGet packages via deps.dev and ecosyste.ms. Handles rubygems, git, path, GitHub Packages, and JFrog Artifactory sources. Outputs coloured terminal tables, markdown, JSON (with a versioned, contract-tested schema), SARIF for GitHub code scanning, and a CycloneDX SBOM. CI quality gates (--fail-if-critical / -warning / -vulnerable / -outdated / -poison / -language-ceiling) with granular, committed suppression via .still_active.yml. Complements bundle outdated, bundler-audit, and libyear-bundler by adding the maintenance signal they don't, and folds their version, CVE, and libyear checks into one report.
== Medusa: a ruby crawler framework {rdoc-image:https://badge.fury.io/rb/medusa-crawler.svg}[https://rubygems.org/gems/medusa-crawler] rdoc-image:https://github.com/brutuscat/medusa-crawler/workflows/Ruby/badge.svg?event=push Medusa is a framework for the ruby language to crawl and collect useful information about the pages it visits. It is versatile, allowing you to write your own specialized tasks quickly and easily. === Features * Choose the links to follow on each page with +focus_crawl+ * Multi-threaded design for high performance * Tracks +301+ HTTP redirects * Allows exclusion of URLs based on regular expressions * Records response time for each page * Obey _robots.txt_ directives (optional, but recommended) * In-memory or persistent storage of pages during crawl, provided by Moneta[https://github.com/moneta-rb/moneta] * Inherits OpenURI behavior (redirects, automatic charset and encoding detection, proxy configuration options). <b>Do you have an idea or a suggestion? {Open an issue and talk about it}[https://github.com/brutuscat/medusa-crawler/issues/new]</b> === Examples Medusa is versatile and to be used programatically, you can start with one or multiple URIs: require 'medusa' Medusa.crawl('https://www.example.com', depth_limit: 2) Or you can pass a block and it will yield the crawler back, to manage configuration or drive its crawling focus: require 'medusa' Medusa.crawl('https://www.example.com', depth_limit: 2) do |crawler| crawler.discard_page_bodies = some_flag # Persist all the pages state across crawl-runs. crawler.clear_on_startup = false crawler.storage = Medusa::Storage.Moneta(:Redis, 'redis://redis.host.name:6379/0') crawler.skip_links_like(/private/) crawler.on_pages_like(/public/) do |page| logger.debug "[public page] #{page.url} took #{page.response_time} found #{page.links.count}" end # Use an arbitrary logic, page by page, to continue customize the crawling. crawler.focus_crawl(/public/) do |page| page.links.first end end
This is a simple ruby wrapper for Titus Wormer's awesome javascript language detection called Franc (https://github.com/wooorm/franc). At this time, this gem depends on a global npm installation of franc and runs a bash command within ruby to invoke the franc javascript. If you do not have franc installed, this gem will install it for you on the first run.
UHFerret is a copy-detection tool to analyse large sets of documents to find pairs of documents with substantial amounts of lexical copying. Documents containing either natural language (e.g. English) or computer programs (in C-family) may be processed.
Compact Language Detection for Ruby
Panache is a simple way to create style checkers for various languages. It does simple parsing of source files and then applies user-specified rules to detect style violations.
A rubygem to detect the language of a text (using Google Language Detector)
GitHub Language detection
This is a ruby implementation of Karel The Robot, a programming language designed for extreme beginners. It concerns controlling a robot, named Karel, in a grid-based world comprised of walls and beepers. Karel can pick up and put down beepers, move forward, and turn left. Karel can also detect things about his environment.
A Ruby gem for Compact Language Detection 2.0, providing language detection capabilities.
Ruby Library for the languagelayer API, powerful language detection, https://languagelayer.com/
Ruby bindings for Whatlang, a natural language detection for Rust.
This is a Ruby API wrapper for consuming the https://linguin.ai/ API allowing you to detect the language of a text fast and with high accuracy.
Detect text language and translate text language in Rails Controller, Views, Model, Lib, etc
Small utility that allows you to detect scripts (languages) in unicode text
Compact Language Detection from chrome (jtoy fork/gemfix)
A Minitest reporter optimized for Large Language Model consumption, featuring compact emoji-based output, regression detection by comparing test runs, TOML report generation, and detailed failure reporting with file locations. Perfect for AI-assisted development workflows.
GitHub Language detection (special OL dub)
RubyTranslate provides a simple wrapper around the Google Translate API for detecting and translating languages.
Natural language detection with a focus on simplicity and performance. Currently wraps the lingua-rs Rust crate.
A simple library written in Ruby language to detect spam built around bogofilter executable. The supported input format is the same as in bogofilter - text, EML, mbox.
The English language is extremely complicated. We have words that can have multiple parts of speech. Natural language processing is difficult because it is hard to tell if a word is a noun when it could be a verb or an adjective, etc. The purpose of this project is to develop an algorithm that, given a sentence string, has a ranking system that detects the part of speech of each word. Why is the useful? Because understanding the correct parts of speech in a sentence is the first step to teaching a robot how to read.
Detect Locale for Rails app using request, session or accept-language headers.
Profanity Filter is a bad word filter API that scans text for offensive language and masks detected swear words with a chosen replacement character. It returns the sanitized text and a boolean flag indicating if profanity was present. Paid plans add the count of filtered words, each matched word with its position, and custom allow and block word lists.
Text Language is a language detection API that detects the language of any input string, returning the full language name and its two-letter ISO 639-1 code. Send plain text passages or short snippets to identify incoming multilingual content.
Locallingo extends i18n-tasks with AI translation (via RubyLLM — OpenAI, Anthropic, and more), source-hash drift detection so only missing/changed keys are re-translated, and a static + AI translation-quality linter. Everything app-specific — target locales, provider/model, prompt context and glossary, per-language style guides, which validators and quality rules run, and post-translate hooks — is config-driven via `.locallingo.yml`, with a default block plus optional per-package overrides. Ships the `lingo` CLI.