Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

enry is an open-source Go command-line tool for identifying programming languages in files and directories. Unlike GitHub Linguist, its CLI can analyze files without a Git repository. It can print per-file results or JSON, and its language detection is based on data from GitHub Linguist with documented differences.

What enry does

enry identifies languages in source files using a combination of filename, extension, shebang, editor modeline, file content and Bayesian-classifier checks. Its command-line tool is built on the go-enry/go-enry library. Because the CLI does not require a Git repository, it can analyze a directory of files even when that directory has no Git metadata.

The project describes enry as offering twice the performance of its Linguist predecessor. That is the project’s own claim; the README does not provide a benchmark date or testing details to independently assess it.

How to install enry

The official enry CLI README recommends downloading a release or installing with Go. Its documented Go command is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Assckr Language Translator Device, Wearable AI Translator, Real-Time, Gray
  • REAL-TIME VOICE TRANSLATION: Choose two of 165 supported languages in the ConTutor App. CT-06 identifies which language is being spoken and plays translated audio through its built-in speaker, with responses in as fast as 0.5 seconds.
  • NO SUBSCRIPTION: Connect the portable translator to most iOS and Android phones or tablets with Bluetooth 6.0. The app and internet access are required during use; offline translation is not supported.
  • AI-ASSISTED LANGUAGE PRACTICE: Use it for trips, business meetings, classrooms, and bilingual family conversations. For clearer recognition, speak within 3.3 ft or 1 m in a quiet setting.
  • SMART VOICE CONTROLS: Hold the microphone button to start or stop translation, adjust volume on the device, and use play or pause as needed. The 400 mAh battery charges by USB-C with a 5 V/1 A source.
  • WEARABLE TRANSLATOR: The compact 1.44 oz device measures 2.36 x 2.36 x 0.39 inches. Use the collar clip or included lanyard to keep it accessible while traveling, working, or shopping.
(cd "$(mktemp -d)" && go mod download && go get github.com/go-enry/enry)

This command requires Go to be installed and available in your shell. It runs in a temporary directory, so it does not add the project to your current working directory. For release downloads and any changes to installation guidance, use the CLI repository’s README.

Run enry on files or directories

Run enry followed by the file or directory paths you want to analyze. The CLI does not require those paths to be inside a Git repository. By default, its report covers Markdown and Programming language groups.

Rank #2
Sale
Language Translator Device No WiFi Needed, 2026 Upgraded AI Translator, 150+ Languages Instant Two Way Vioce Translator, Online/Offline/Recording/Photo/Text Translation for Business Learning Travel
  • 【4.1" HD Touchscreen】: This smart language translator is equipped with a 4.1-inch IPS HD touch screen, all functions can be operated through the screen, and the simple interface design is suitable for everyone. This small but powerful translator will be your right-hand assistant when studying, working or traveling.
  • 【Chatgpt and Smart Recording】This voice translator device is equipped with the most popular Chapgpt application, providing you with intelligent and practical voice services and making communication easy and natural when you use instant translator. The language translation device acts as your meeting record assistant, recording 60 minutes of audio memos. It supports a variety of recorded translations, ideal for lectures and conference recordings.
  • 【150 Languages Online Translation】Our language translator device supports more than 150 online voice translations with an accuracy rate of up to 98%. Whether you're traveling for business or pleasure, this portable translate device will ensure smooth communication in foreign languages. Enjoy instant voice translation, with clear playback, 100% subscription-free.
  • 【Multiple Offline Translations】: Language translator device has offline translations in 20+ languages, so you can enjoy world travel even without the Internet. This makes tanslator device ideal for international travel, business meetings, or use in remote areas without internet access.
  • 【Powerful Photo Translation Function】The translator devices are built-in 8MP camera supports image and text translation in 75 languages online and 41 languages offline. By simplifying tasks such as reading menus, road signs, magazines, and labels in various languages, enhances the user experience

Use these options to change the report:

  • --breakdown includes per-file detail.
  • --json produces machine-readable JSON output.
  • -all broadens reporting to all language groups, including plain text, markup, templates, configuration scripts and others.
  • -prog limits results to programming languages, which is useful when another tool will lex or parse the detected files.

The README notes that the final report excludes well-known vendoring, configuration and documentation paths, as well as dot-prefixed paths. This means the reported language mix may not include every file present in the directory.

How enry identifies a language

Detection uses progressively narrower matching strategies, drawing on whichever information is available for a file:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
AI Language Translator Device, 165 Languages, White
  • Support Workplace Communication: Designed for everyday conversations in restaurants, hotels, retail stores, and other service environments. Help English and Spanish speakers communicate more smoothly during customer service, teamwork, and daily interactions
  • 165 Language App Support: No subscription fee required, Connect the device with the companion app to access 165 listed languages and translation features. Useful for Spanish speakers learning English, English speakers communicating with Spanish-speaking coworkers, and multilingual conversations
  • Practice English Spanish Conversations: Built-in microphone and speaker support listening and speaking practice through app-based exercises. Review vocabulary, common phrases, and real-life scenarios for workplace and daily communication
  • Lightweight Clip-On Design: Weighing only 1.31 oz with a compact 2.76 × 2.72 × 0.91 inch design, this wearable translator can be clipped to clothing or carried with the included lanyard for hands-free convenience
  • Bluetooth Connection USB-C Charging: Connect with compatible smartphones or tablets via Bluetooth up to 32.8 ft. The built-in 600 mAh rechargeable battery supports up to 8 hours of audio playback for work, study, and everyday use
  1. Filename and extension: Recognizes language cues in the path and file suffix.
  2. Shebang and modeline: Checks the first-line interpreter declaration and Vim or Emacs modelines when present.
  3. File content: Uses content-based rules to narrow possible matches.
  4. Bayesian classification: Applies a classifier as a later signal when earlier checks do not settle the result.

The library also exposes Go functions including GetLanguageByExtension and GetLanguageByContent, alongside combined detection calls. For programming languages such as Python and Java, enry has documented support through language bindings as well as its Go-based CLI; the Python binding requires Python 3.9 or newer.

enry and GitHub Linguist: what differs

enry is related to GitHub Linguist, but it is not a drop-in match for every Linguist behavior. The current library says its generated language data is based on GitHub Linguist v9.5.0 and documents compatibility gaps. GitHub Linguist is used in GitHub’s repository language reporting, while enry offers a standalone CLI and library that can be applied outside that context.

Rank #4
AI Language Translator Device Real Time, 165 Language, 4-in-1 Language Translator, Speaking Practice Device, Bluetooth 6.0, Spanish Learning Device, Pocket Translator for Learning
  • 💟【Kids Bilingual Oral Practice,Bluetooth & JoyAudio App Required】Designed for kids oral language practice, this wearable device requires Bluetooth connection to your smartphone or tablet plus the JoyAudio App to activate real‑time bilingual practice. Optimized for young language learners, it creates a low‑pressure environment for kids to practice oral speaking, improve pronunciation and build speaking confidence. Note: This device cannot work standalone without a paired Bluetooth‑enabled mobile device
  • 🎉【AI Vocabulary Bank & Spaced‑Repetition Flashcard Training】Improve your foreign‑language learning efficiency with this smart translation & speaking practice device. When connected to JoyAudio App, its intelligent word bank can capture new words from conversations and generate customized spaced‑repetition flashcards to strengthen memory. Suitable for kids and adult learners alike, it turns daily dialogue into vocabulary‑building practice and simplifies foreign‑language learning
  • 🌍【AI‑Powered Real‑Time Translation (Phone & App Dependent)】Real‑time translation function relies on paired smartphone network and JoyAudio App; standalone offline translation is NOT supported. It supports conversations across Multiple languages to facilitate cross‑language communication. Translation response speed is affected by Bluetooth stability and mobile network status, minor latency may occur. A handy helper for overseas trips, business negotiations and international social scenarios
  • 🙊【4‑in‑1 Multifunctional AI Translator for Daily‑use】This multi‑functional device integrates oral‑speaking training, smart AI chat, bilingual dialogue and audio‑to‑text transcription. It records high‑fidelity audio and converts speech into readable text, great for classroom lectures, office meetings and cross‑border discussions for students, office‑workers and international frequent‑travellers
  • 💞【Light‑Weight Clip‑on Wearable Design for Wide Compatibility】Compact clip‑on wearable design makes this speaking practice & translation device easy to carry. You can clip it on clothes, attach a lanyard or slip it in your pocket. It also acts as Bluetooth microphone and speaker for hands‑free calls for study, work or travel. Speaker volume is optimized for quiet‑to‑moderate indoor surroundings; performance may be limited in loud noisy environments
Area enry GitHub Linguist
Git repository required No; the CLI can analyze files without an actual Git repository. The enry README identifies this as an intentional difference from Linguist.
Installation and use Standalone CLI releases and Go installation are documented; library bindings are also available. Not stated in the cited enry documentation.
Output and filters CLI supports per-file breakdown, JSON, all language groups and programming-language-only reporting. Not stated in the cited enry documentation.
Detection methods Uses filename, extension, shebang, modeline, content and Bayesian classification. enry’s detector derives from Linguist, but this comparison does not establish that every implementation detail is identical.
Ignored, vendored and submodule files Excludes documented vendoring, configuration and documentation paths and dot-prefixed paths; does not exclude .gitignored files and Git submodules in the same way as Linguist. enry documents the difference, but the cited source does not enumerate Linguist’s full rules.
Regex compatibility Some Linguist heuristics use regex constructs unsupported by RE2, creating documented differences for examples including Vim Help, Solidity, RUNOFF, NASL, ActionScript and GSC. The source documents those as gaps in enry’s compatibility.
.gitattributes overrides Language and type overrides from .gitattributes are not supported. The source documents this as a difference; it does not detail the corresponding Linguist behavior.
Language bindings Documented bindings include Python 3.9+, Java through a shared library/JNI package, and Rust generated bindings. Not stated in the cited enry documentation.

The Bayesian classifier also cannot reliably distinguish SQL from PLpgSQL. Treat ambiguous results as a useful automated classification rather than an authoritative resolution in cases where the distinction matters.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which enry repository should you use?

Use the current go-enry/enry CLI repository for command-line installation and usage. The former src-d/enry repository is archived and directs development to go-enry/go-enry. Notes about historical gaps in that archived code line—including generated-file and XML detection—should not be assumed to describe the current release.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

License

enry is open source under the Apache License, Version 2.0. See the license notices in the CLI repository and the library repository.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.