Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top languages stat is somewhat misleading ? #1642

Closed
Koushikphy opened this issue Mar 14, 2022 · 1 comment
Closed

Top languages stat is somewhat misleading ? #1642

Koushikphy opened this issue Mar 14, 2022 · 1 comment
Labels
enhancement New feature or request.

Comments

@Koushikphy
Copy link

I feel the top languages card calculation is somewhat misleading. For me, it shows https://github-readme-stats.vercel.app/api/top-langs/?username=koushikphy&layout=compact

Top Langs

But this is somewhat misleading for me. This shows more than half of my codes are in Fortran, which is not true. I believe the calculation is done by counting all the sizes of the repo languages (here https://github.com/anuraghazra/github-readme-stats/blob/master/src/fetchers/top-languages-fetcher.js#L47). It would be better to only consider one language, the primary one, for one repo and count them up. In such a condition my stats would look like:

Python: 15  
HTML: 10  
JavaScript: 8  
Fortran: 8  
Dart: 3  
TeX: 2  
Jupyter Notebook: 2  
Julia: 1  
Shell: 1

Which is a fairly accurate representation of my overall coding activity. So, I believe there should be an option to represent only one primary language per repo.

@rickstaa
Copy link
Collaborator

rickstaa commented Mar 15, 2022

@Koushikphy thanks for reporting this. There has been a lot of debate about the accuracy of the language count mechanism (see #1027). The latest proposal can be found in #1600. I think it is best to add your thoughts to those two issues. Will close this issue for now.

@rickstaa rickstaa added the enhancement New feature or request. label Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants