Skip to content

Conversation

@joshgoebel
Copy link
Member

@joshgoebel joshgoebel commented Apr 13, 2021

  • After a keyword has been matched 7 times it stops adding
    additional relevance.

This prevents variable names that are keywords in another language
from being counted excessively and given more weight than they
should.

The max count may need to be adjusted over time.

Resolves #2826.

Checklist

  • Added markup tests, or they don't apply here because...
  • Add unit tests
  • Updated the changelog at CHANGES.md

- After a keyword has been matched 7 times it stops adding
  additional relevance.

This prevents variable names that are keywords in another language
from being counted excessively and given more weight than they
should.

The max count may need to be adjusted over time.
@joshgoebel joshgoebel marked this pull request as draft April 13, 2021 09:57
@joshgoebel joshgoebel added this to the 11.0 milestone Apr 20, 2021
@joshgoebel joshgoebel requested a review from allejo May 14, 2021 14:43
@joshgoebel joshgoebel marked this pull request as ready for review May 14, 2021 14:43
@joshgoebel joshgoebel modified the milestones: 11.0, 11.0-beta1 May 16, 2021
@joshgoebel joshgoebel merged commit bf6a7cc into highlightjs:main May 16, 2021
@joshgoebel joshgoebel mentioned this pull request Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: 0 relevancy by default

2 participants