Fuzzy Duplicate Detection When Adding Notes

Currently, Anki warns about exact duplicates in red. However, it’s still easy to accidentally create notes that are essentially duplicates but are worded differently.

For example:

  • “What is the capital of France?”
  • “France’s capital is?”
  • “Which city is the capital of France?”

My idea is to make this an optional feature that, when adding a note, searches for similar existing notes and highlights the card in yellow if similarity check exceeds a certain number (say 80/90). We can also configure this number in settings

Interesting, but how could you possibly test that? Are there algorithms that could do that? I mean, I did see you wrote

But looking at the web results, they all seem to be plagiarism checks. Even if that could be used for anki, wouldn’t that mean we’d have to train the plagiarism checks with the contents of all of our cards so that it could find duplicates (as an aside, do plagiarism checks actually flag similar things? Or just straight up “stolen” content due to missing credit?)

So essentially local computations would be quite high, especially for users with many cards or big cards.