github-linguist/linguist
View on GitHub ↗ ★ 13,760 Ruby
Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
94 mentions on Hacker News by 79 people: 12 stories, 82 comments · first 2011-12-19 · latest 2026-08-16
20082026
-
wdym they've had it for years? https://github.com/github-linguist/linguist/pull/5688
comment by giraffe_lady · 2026-08-16 · in Jaithon 3, a fast programming language with the perfect syntax -
…but still), I don't know if I want to believe it's less than 2.6% Perl. [0]. "It's fixed". [0]: https://github.com/github-linguist/linguist/issues/1626
comment by mk89 · 2025-11-21 · in New OS aims to provide (some) compatibility with macOS -
Renaming it on GitHub.com in this PR: https://github.com/github-linguist/linguist/pull/7475
comment by welder · 2025-06-30 · in JavaScript Trademark Update -
…verify that every one of these is in the readme, but the more programmatic version of that list https://github.com/github-linguist/linguist/blob/v9.1.0/.git...
comment by mdaniel · 2025-05-31 · in Grammar Index, Syntax Highlighting on GitHub -
…the case with your own language https://github.com/simonask/werk/blob/5990c8a9536a1a76c3da59... 1: https://github.com/github-linguist/linguist/blob/v9.0.0/docs...
comment by mdaniel · 2025-01-13 · in Show HN: Werk, a simple build tool and command runner -
…files by informing it they're actually Scala, which would make reading those files much nicer IMHO: https://github.com/github-linguist/linguist/blob/v8.0.1/docs... Or, I believe you can submit a PR to linguist to make it globally…
comment by mdaniel · 2024-10-28 · in Mill: A fast JVM build tool for Java and Scala -
…2: https://github.com/JetBrains/intellij-community/blob/idea/24... 3: https://github.com/github-linguist/linguist/blob/v7.30.0/lib... 4: https://github.com/microsoft/vscode-textmate 5: https://github.com/highlightjs/highlight.js
comment by mdaniel · 2024-08-20 · in Pragtical: Practical and pragmatic code editor -
You can tweak/exclude with .gitattributes https://github.com/github-linguist/linguist/blob/master/docs...
comment by badlibrarian · 2024-07-02 · in Diff-pdf: tool to visually compare two PDFs -
…via .gitattributes communicating to GH that it's actually yaml: https://github.com/github-linguist/linguist/blob/master/docs...
comment by mdaniel · 2024-03-28 · in Show HN: Fix – An open source cloud asset inventory for cloud security engineers -
There’s already a draft pr for this: https://github.com/github-linguist/linguist/pull/6686
comment by mr_00ff00 · 2024-01-24 · in Change F#'s Color on GitHub -
…there. Hopefully this helps get started on improving the poor syntax highlighting experience. [0] https://github.com/github/linguist/blob/master/CONTRIBUTING.... [1] https://github.com/github/linguist/blob/c34f887f48d81e2ed42b... [2]…
comment by TheAceOfHearts · 2023-03-21 · in Java 20 / JDK 20: General Availability -
…`T` has been driving me crazy for YEARS!) Correct me if I'm wrong, but checking those two files: - https://github.com/github/linguist/blob/master/lib/linguist/... - https://github.com/github/linguist/blob/master/lib/linguist/... I don't…
comment by jakub_g · 2022-07-06 · in Bun: Fast JavaScript runtime, transpiler, and NPM client written in Zig -
…sets a negative override for any gitattribute). Here's a test demonstrating that this usage works: https://github.com/github/linguist/blob/32ec19c013a7f81ffaee...
comment by brasic · 2022-07-06 · in Bun: Fast JavaScript runtime, transpiler, and NPM client written in Zig -
…>> .gitattributes echo '*.mli linguist-language=OCaml' >> .gitattributes [1] https://github.com/github/linguist/blob/master/docs/override...
comment by mananaysiempre · 2022-04-23 · in Magic-trace – High-resolution traces of what a process is doing -
I believe this is the syntax highlighter’s repo: https://github.com/github/linguist/blob/master/CONTRIBUTING....
comment by aeldidi · 2022-04-16 · in Zig self hosted compiler is now capable of building itself -
…issue I'm frustrated with is that syntax highlighting for code blocks depends on GitHub's blessing: https://github.com/github/linguist/issues/2598 For example, this page from my blog highlights OCaml code, but not the language I'm…
comment by jasone · 2022-02-23 · in Ask HN: Is Jekyll on GitHub a good solution for hosting a website? -
…file must be present with something like, *.ixx linguist-language=C++ More info here, https://github.com/github/linguist/blob/master/docs/override...
comment by pjmlp · 2022-02-11 · in Ray Tracing for the TI-84 CE -
…can be used to identify the programming language of a single file (edit: or of a whole project): https://github.com/github/linguist#single-file
comment by jamessb · 2021-08-31 · in Glean – System for collecting, deriving and querying facts about source code -
…"My Research Software" version: 2.0.4 doi: 10.5281/zenodo.1234 date-released: 2017-12-18 url: "https://github.com/github/linguist" https://citation-file-format.github.io/
comment by westurner · 2021-08-21 · in Enhanced Support for Citations on GitHub -
…at github/linguist, that's what recognizes languages in repos. It has this rule for FreeMarker: https://github.com/github/linguist/blob/32ec19c013a7f81ffaee... It seems a .ftl extension means FreeMarker to linguist, so those localizations…
comment by TheDong · 2021-05-05 · in Send: A Fork of Mozilla's Firefox Send -
It is similar to the tool github uses to detect language of files ( https://github.com/github/linguist ) but about 2x faster. Here is the CLI binary repo: https://github.com/go-enry/enry
comment by ducktective · 2021-01-16 · in A faster file programming language detector -
Wonder no more! https://github.com/github/linguist/blob/7c2adbdb15d4efd25d92... As most AI, it's regex and ifs all the way down.
comment by remram · 2020-11-25 · in A Modern Compiler for the French Tax Code -
Here you go! https://github.com/github/linguist#how-linguist-works
comment by Eikon · 2020-11-25 · in A Modern Compiler for the French Tax Code -
…accepted on github as of 2016 (it is a simple list, suitable for a dropdown list). The page https://github.com/github/linguist/blob/master/lib/linguist/... gives more details about the languages recognized by linguist. 2) Not reproducible:…
comment by whitten · 2020-10-12 · in Show HN: How to X with Y. Engineering questions, answered -
…have to do some server-side analysis of the entire file and make an educated guess. For example, https://github.com/github/linguist . But if the language is known in advance, then you could send the grammar rules to the client.
comment by bhl · 2020-06-27 · in Xi-Editor Retrospective -
I found this link [1], but nothing related to ML@B with it. [1] https://github.com/github/linguist
comment by bhl · 2020-02-14 · in GitHub CLI is now in beta -
https://github.com/github/linguist
comment by Klathmon · 2019-07-12 · in Mirth – a type-safe concatenative purely functional programming language -
Looks like GitHub will quickly have support for syntax highlighting of ZIL files. https://github.com/github/linguist/pull/4497
comment by sp332 · 2019-04-17 · in Source code for Zork, Hitchhiker’s Guide, and other Infocom games -
And now it's a PR. By a GitHub engineer even. https://github.com/github/linguist/pull/4497
comment by int_19h · 2019-04-16 · in Source code for Zork, Hitchhiker’s Guide, and other Infocom games -
…the Ruby gem GitHub uses to determine the programming language. Everything else is a workaround. https://github.com/github/linguist
comment by rmetzler · 2019-01-01 · in Merlin: A cross-platform command and control server and agent written in Go -
Create a report at: https://github.com/github/linguist
comment by omeid2 · 2018-11-12 · in 6502 source code for BBC Micro game Crazee Rider from 1987 -
Github is using Linguist[0] for analyzing languages in a repo. https://github.com/github/linguist
comment by omeid2 · 2018-11-11 · in 6502 source code for BBC Micro game Crazee Rider from 1987 -
…fast, high-quality combination. [1] https://macromates.com/manual/en/language_grammars [2] https://github.com/github/linguist/issues/1717#issuecomment-... [3] https://github.com/trishume/syntect [4] https://github.com/sourcegraph/syntect_se…
comment by emidoots · 2018-09-07 · in Rethinking Classical Concurrency Patterns -
To some extent, you can influence GitHub's classification via gitattributes: https://github.com/github/linguist
comment by jwilk · 2017-12-13 · in Avast open-sources its machine-code decompiler -
By the way, GitHub's language detection is powered by their Linguist library [1]. [1] https://github.com/github/linguist
comment by niftich · 2017-10-13 · in Analysing C# code on GitHub with BigQuery -
…the files tend not to have unique suffixes. [1] https://github.com/John-Nagle/ttyloopdriver [2] https://github.com/github/linguist/issues/3812
comment by Animats · 2017-09-19 · in How to Read a Schematic -
…OpenVista. At one point we had to argue with Github to support syntax highlighting for M/MUMPS: https://github.com/github/linguist/pull/148 [0] https://en.wikipedia.org/wiki/VistA [1] https://en.wikipedia.org/wiki/VistA#Usage_in_non-governm…
comment by doughj3 · 2017-03-13 · in The Mumps Programming Language -
…and get it's width, height. You could support ignoring binary/generated code with a Linguist( https://github.com/github/linguist ) wrapper(ruby). Hope it didn't sound like criticism, just wanted to talk about it. Not everyone wants to talk…
comment by ortuna · 2017-02-13 · in Building Code Posters with Elixir -
Probably worth reporting to Language Servant [0]. [0] https://github.com/github/linguist
comment by 0xmohit · 2016-07-21 · in Programming Language Rankings: June 2016 -
…find JSCAD modeling inside Atom useful? Tips/suggestions? I've been working on this project [1] [0] https://github.com/github/linguist/pull/2712 [1] https://atom.io/packages/atom-scad-preview
comment by matiasb · 2016-01-14 · in Atom text editor 1.4 released -
…allow one JSON expression per line. I see someone already created a GitHub linguist issue for it: https://github.com/github/linguist/issues/2217
comment by benatkin · 2015-09-26 · in JSON Lines -
It looks like a simple count of the language(s) detected by the linguist project -- https://github.com/github/linguist Agreed, does not make much sense if it isn't a weighted average. A simple count could very well be littered with…
comment by justboxing · 2015-08-19 · in Language Trends on GitHub -
None actually. Haven't gotten around to troubleshooting linguist yet - https://github.com/github/linguist#troubleshooting
comment by geno149 · 2015-06-03 · in Show HN: Use wealthbot.io to easily setup your own portfolio management platform -
Because of some technical reasons language renames can't be handled by Github at all currently: https://github.com/github/linguist/pull/1936 Edit: The now deleted post was asking about whether Nim code could finally be identified as "Nim"…
comment by def- · 2015-05-05 · in A small kernel written in Nim -
…code, which I hope will be fixed soon [2]. [1] http://libraries.io/search?languages=Standard+ML [2] https://github.com/github/linguist/issues/2208
comment by amirmc · 2015-03-16 · in Libraries.io – Open-Source Discovery Service -
I'm using https://github.com/github/linguist for language information, still waiting for this pr to be merged for the Nimrod => Nim change: https://github.com/github/linguist/pull/1936
comment by andrewnez · 2015-03-16 · in Libraries.io – Open-Source Discovery Service -
Github's language detection is actually open-source — you can have a look at what it does here: https://github.com/github/linguist Linguist uses a number of different 'strategies' to identify the language – in the case of C vs. Objective…
comment by matthewmacleod · 2015-03-12 · in Foreign Linux: Run Linux binaries on Windows without drivers or modification -
…or developed as far as i can tell. If you have Ruby in your stack, it's easy -- use github's own https://github.com/github/linguist You might also be able to use just the language definition files from https://github.com/syntaxhighlighter
comment by coolmitch · 2015-02-21 · in Highlight.js – Syntax highlighting for the Web -
Of course it does: https://github.com/r0nk/ward/blob/master/hello.bf https://github.com/github/linguist/blob/master/lib/linguist/... Just not in Ace (their code editor). It doesn't count it in language statistics, though.
comment by Argorak · 2015-01-07 · in I made a debugger that draws the state machine of the program