Hacker GitHub

← All repos

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

Mentions per year 94 mentions · busiest year 2014 (20)
20082026
  1. wdym they've had it for years? https://github.com/github-linguist/linguist/pull/5688
  2. …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
  3. 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
  4. …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...
  5. …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...
  6. …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…
  7. …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
  8. 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
  9. …via .gitattributes communicating to GH that it's actually yaml: https://github.com/github-linguist/linguist/blob/master/docs...
  10. 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
  11. …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
  12. …`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…
  13. …sets a negative override for any gitattribute). Here's a test demonstrating that this usage works: https://github.com/github/linguist/blob/32ec19c013a7f81ffaee...
  14. Thanks! This is how GitHub started to support V: https://github.com/github/linguist/pull/4564
    comment by amedvednikov · 2022-07-01 · in V 0.3
  15. …>> .gitattributes echo '*.mli linguist-language=OCaml' >> .gitattributes [1] https://github.com/github/linguist/blob/master/docs/override...
  16. I believe this is the syntax highlighter’s repo: https://github.com/github/linguist/blob/master/CONTRIBUTING....
  17. …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…
  18. …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
  19. …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
  20. …"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
  21. …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
  22. 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
  23. Wonder no more! https://github.com/github/linguist/blob/7c2adbdb15d4efd25d92... As most AI, it's regex and ifs all the way down.
  24. Here you go! https://github.com/github/linguist#how-linguist-works
  25. …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:…
  26. …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
  27. 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
  28. https://github.com/github/linguist
  29. Looks like GitHub will quickly have support for syntax highlighting of ZIL files. https://github.com/github/linguist/pull/4497
  30. And now it's a PR. By a GitHub engineer even. https://github.com/github/linguist/pull/4497
  31. …the Ruby gem GitHub uses to determine the programming language. Everything else is a workaround. https://github.com/github/linguist
  32. Create a report at: https://github.com/github/linguist
  33. Github is using Linguist[0] for analyzing languages in a repo. https://github.com/github/linguist
  34. …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
  35. To some extent, you can influence GitHub's classification via gitattributes: https://github.com/github/linguist
  36. 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
  37. …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
  38. …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
  39. …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
  40. 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
  41. …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
  42. …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
  43. 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
  44. None actually. Haven't gotten around to troubleshooting linguist yet - https://github.com/github/linguist#troubleshooting
  45. 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
  46. …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
  47. 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
  48. 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…
  49. …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
  50. 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.