github-linguist

linguist

GitHub's official language detection library used to detect blob languages, ignore binary or vendored files, suppress generated files in diffs, and generate language breakdown graphs.

v9.7.0
Published at
Aug 26, 2026
13,723
Stars
6,181
Download
Synced at
Oct 4, 2026

Latest release

v9.7.0Aug 26, 2026, 10:30 AM
Downloads slow? Switch the source anytime above

README

Project Overview

Linguist is GitHub's official language detection library, used to detect programming languages in repositories, ignore binary or vendored files, suppress generated files in diffs, and generate language breakdown graphs. It can be used as a Ruby gem or via the command line.

Key Features

  • Detect programming languages in repositories
  • Ignore binary and vendored files
  • Suppress generated files in diffs
  • Generate language breakdown graphs
  • Available as a Ruby gem or CLI tool

Target Audience

  • Developers who need to analyze language composition in codebases
  • GitHub users and open-source maintainers
  • Developers interested in language detection technology

Quick Start

  1. Install: gem install github-linguist
  2. CLI usage: github-linguist /path/to/repo
  3. Outputs language breakdown by percentage and file size

Core Advantages

  • GitHub's official language detection library
  • Supports a wide range of languages and file types
  • Available as both CLI and Ruby API

System Requirements

  • OS: Cross-platform (requires Ruby environment)
  • Additional Dependencies: cmake, pkg-config, ICU, zlib, libcurl, OpenSSL

Release history

Sort