My recent GitHub repository was coded in a Turing file (*.t), but it is marked as Perl6.
You can fix the issue locally, on your repository, with Linguist overrides. If it's a general issue on github.com, we could add new heuristic rules to distinguish between Turing, Perl, Perl6 and Terra files.
@MathBunny The Turing sample that Linguist uses looks pretty basic. It would probably help the classifier if it had a more substantial fixture to work off.
Your program looks like it'd be a good example, but we can't use it unless it's released under a permissive license (like MIT, ISC, Apache-2, etc).
At the moment, your project's license isn't listed, so I'm not sure how you'd feel about this.
Closing this out as #3040 is merged.
I'll test this locally, and if the repo is still being misclassified, I'll write a heuristic. =)
@Alhadis I was looking at the file test_heuristics.rb, and I couldn't find Turing there, but I saw Perl6 was listing there with the extension *.t - is this how it's supposed to work? Shouldn't Turing be listed there?
Haha, no no. =) Linguist identifies files based on the frequency of certain patterns and tokens, which is good enough for most cases. However, there are situations when it gets stuck or confused, and it needs human help to push it in the right direction. Those are the times when a heuristic is written is help.
This heuristic would've been written to help Linguist tell the difference between Perl and Perl6, since both languages use the .pm and .t extensions, and both probably have a lot in common (I only know Perl, never been bothered to learn Perl6, and I frankly don't want to).
Got it! Thanks :)
No wukkaz!
(That's Australian for _"you're most welcome"_).
@MathBunny, you'll be pleased to know a heuristic won't be necessary. Your sample's educated Linguist on Turing perfectly. :D Have a look at the result:

Amazing, glad it worked out!
Most helpful comment
I'll test this locally, and if the repo is still being misclassified, I'll write a heuristic. =)