upsiflu / matsite

2 stars 0 forks source link

Some auto-links are bogus #9

Closed upsiflu closed 1 year ago

upsiflu commented 2 years ago

Example: In the About section, each team member has an auto-generated link. The algorithm simply finds the closest match, even if it's not close at all.

Quick solution: Only link if Levenshtain distance is smaller than approx. string length divided by 3, i.e. if there is no more than one letter-modification per every three letters. This function is already implemented. Needs 10min to transfer.

Sustainable solution: Allow manual overrides for auto-generated links (needs a good design still)

Severity: medium

upsiflu commented 1 year ago

Fixes:

New problems:

For the latter problems, we'd need a templating DSL within the article HTML to query and add directory entries. Perhaps overkill...