Skip to content

[Proposal] New Top Language Detection Algorithm  #1600

Closed
@kitswas

Description

Is your feature request related to a problem? Please describe.

This is related to an earlier issue.
I am not quite happy with the way Top Languages are calculated (just counting the bytes).

Describe the solution you'd like

The new method is inspired by the h-index.

For a language L,
let x = byte count(currently in use) and y = number of repositories using L.

x*y = k^2
k = sqrt(xy)

Now we can use this k-metric to find the top languages and their weightage.
The higher the value of k, the more used is the language.

While this method is an improvement over both byte count and the number of repositories, it is in no way a magic wand.

Describe alternatives you've considered

None at the moment.

Additional context

I have gone through this issue mentioned in the FAQ.

P.S.: This is the first time I am trying to contribute to open source. Please point out if I make a mistake.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.lang-cardIssues related to the language card.proposalProposals to change code or documentation fundamentals.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions