Skip to content

Perl files misidentified as "Raku" #6263

Answered by lildude
mauke asked this question in Classification
Jan 25, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

This will be because your files don't match any of the heuristics for the .pm extension so it falls through to the "last resort" classifier which will make a guess based on the samples we have for all languages that use this extension. This is far from perfect and in this case it's got it wrong three times; ie it thinks your files look more like the Raku samples than the Perl samples.

Improving the Perl heuristic would be ideal, but I doubt there's more specificity that can be added which wouldn't also apply to Raku (from my limited understanding of both languages). Adding more samples might help, but it might not given how similar Perl is to Raku.

There are two solutions you can implement:

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@mauke
Comment options

@lildude
Comment options

@mauke
Comment options

Answer selected by mauke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6262 on January 25, 2023 09:53.