anvaka / common-words

visualization of common words in different programming languages
https://anvaka.github.io/common-words
MIT License
505 stars 27 forks source link

.pl matches non-Perl files #3

Closed nanis closed 7 years ago

nanis commented 7 years ago

See, for example, 11-Rest_SlumpOnFloor/rsfgtMovementIndv_new.pl. This means a lot of non-Perl gets indexed as Perl.

Also, Perl code also comes in .pm, .plx, and .t files as well as files with no extension. Any file with perl in the shebang line is likely a Perl script, and any file that has package statements is likely to be a Perl module.

Ignoring all those and focusing solely on .pl extensions results in oddities such as this.

anvaka commented 7 years ago

As someone suggested on reddit I changed perl visualization to include only pm files. Please let me know how you feel about new version?

nanis commented 7 years ago

That cloud looks more reasonable. Although it looks like it is also capturing Perl 6 content as indicated by the prominence of nqp.