Bury Cousins (related cards that aren't siblings)

AnkiWeb addon 1072815885 GitHub repository archived

Buries related non-sibling cards using configurable similarity, prefix, contains, and cloze rules, and uses these rules to detect duplicates in the card browser.
AI-generated summary; may contain mistakes.

review-flowduplicatesclozeobsolete

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
15 (πŸ‘ 13 Β· πŸ‘Ž 2)
Updated
2021-07-20
Anki versions
2.1.49~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python
Description language
en

Maintenance

abandoned

  • The GitHub repository is archived.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.222.1.49+2021-07-20
History across monthly snapshots

Loading…

Similar addons

Source Siblings Bury (Cousins)

Buries sibling and cousin cards under scheduler V3, potentially taking minutes with many scheduled cards or FSRS enabled, with results synced from desktop to other devices.

schedulingreview-flow

5 votes 38% approval πŸ‘ 4 Β· πŸ‘Ž 1 ⭐ 4 Anki 2.1.66~ Updated 2024-10-18
Bury related notes

Creates custom relations between notes so burying a card's siblings also buries cards of related notes, with options to create, view, and merge relations.

review-flownote-managementtaggingsearch

8 votes 53% approval πŸ‘ 7 Β· πŸ‘Ž 1 ⭐ 4 Updated 2020-04-03
BuryNdays

Extends sibling burying beyond one day, burying related cards for a configurable number of days automatically when entering a deck, with per-deck options including cross-deck burying.

schedulingreview-flow

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 2 Anki 2.1.61~ Updated 2023-06-19

Description

Anki plugin to bury related cards even if they're not siblings. Configure rules so you can suppress similar cards from different notes. To configure, go to "Tools" > "Add-Ons" and select the "Bury Cousins" plugin and click "Config". In that menu you can rules for burying cards like "When reviewing a cloze deletion, bury any cloze cards whose text field is very similar to the reviewed card's text field" or "when reviewing a basic card, bury any basic cards whose Front field starts with the same characters as the reviewed cards Front field." Note: this plugin will not work with the Anki V3 scheduler which removes the hooks this relies on. In addition to burying cards according to these rules, you can also use the rules in the "detect duplicates" tool in the card browser. File or fix bugs here: https://github.com/AlexRiina/anki_cousins Available Rules
  1. Similarity scores fields on fuzzy similarity so "xxxyyy" and "xxyxyy" have a high match score similar but not super high. This test requires that the shorter field is at least 4 characters.
  2. Prefix looks at the percentage of the longer field that matches the shorter field so "1234567" and "123" match on the first 3 characters so their match score is 3/7. This test requires that the shorter card has at least 4 characters.
  3. Contains looks at whether the base field contains the second field exactly, regardless of the threshold you set. This test requires that the shorter field is at least 4 characters. The similarity field is currently ignored for this rule.
  4. Contained by looks at whether the exact base field is contained by the second field, regardless of threshold set. This is the reverse of contains. This test requires that the shorter field is at least 4 characters. The similarity field is currently ignored for this rule.
  5. Cloze contained by looks at whether cloze answers in the base field are in the second field. So if you have a cloze deletion like Rabbit babies are {{c1::altrical::precocial / altricial}} but don't want to see the definition of that word in the same session, you can suppress the definition card using "cloze contained by." This test requires that the shorter field is at least 4 characters. The similarity field is currently ignored for this rule.

README

Anki plugin to bury related cards even if they're not siblings. Configure rules so you can suppress similar cards from different notes. These rules can are also used in identifying duplicate cards in the card browser.

NOTE: this plugin will no longer work with the Anki V3 scheduler which is currently in Beta.

Configuring Rules

To configure, go to "Tools" > "Add-Ons" and select the "Bury Cousins" plugin and click "Config". In that menu you can rules for burying cards like "When reviewing a cloze deletion, bury any cloze cards whose text field is very similar to the reviewed card's text field" or "when reviewing a basic card, bury any basic cards whose Front field starts with the same characters as the reviewed cards Front field"

File or fix bugs here: https://github.com/AlexRiina/anki_cousins

Available Rules

Similarity scores fields on fuzzy similarity so "xxxyyy" and "xxyxyy" have a high match score similar but not super high.

This test requires that the shorter field is at least 4 characters.

Prefix looks at the percentage of the longer field that matches the shorter field so "1234567" and "123" match on the first 3 characters so their match score is 3/7.

This test requires that the shorter card has at least 4 characters.

Contains looks at whether the base field contains the second field exactly, regardless of the threshold you set.

This test requires that the shorter field is at least 4 characters.

Contained by looks at whether the exact base field is contained by the second field, regardless of threshold set. This is the reverse of contains.

This test requires that the shorter field is at least 4 characters.

Cloze contained by looks at whether cloze answers in the base field are in the second field. So if you have a cloze deletion like Rabbit babies are {{c1::altrical::precocial / altricial}} but don't want to see the definition of that word in the same session, you can suppress the definition card using "cloze contained by."

This test is limited to answers with at least 4 characters and requires a word break surrounding the answer to protect against some common cases like testing the spanish article for water with {{c1::el::el / la}} agua from suppressing all cards containing el.

Development

The easiest way to work on this locally is to clone this repo and symlink the src folder into your anki plugins. This will register a plugin which will share settings with any other copy of this plugin that you have installed.

On linux, with my Anki installation, this can be done by

git clone git@github.com:AlexRiina/anki_cousins.git
cd anki_cousins
make develop

To avoid overwriting your main settings while working on this plugin, you can either modify the SettingsManager.key or create a test profile in Anki (File -> Switch Profiles) and develop against that collection.

Testing

Anki's a bit tough to test around. Instead of trying to hack an Anki testing environment, this plugin relies heavily on type statements and manual testing.

To run the small automated linters and tests, run make test.

The manual testing checklist is:

  1. read current settings
  2. add a new rule
  3. delete a rule
  4. close Anki to make sure rules persist
  5. open Anki and make sure rules load
  6. confirm cousins are suppressed
    1. create a new deck
    2. add Basic cards like
      • ("Basic front 1", "1")
      • ("Basic front 2", "2")
      • ("3", "3")
    3. add a rule to suppress Basic cards when rehearsing a Basic card when the Front side is the similar (threshold 0.80)
    4. review deck and confirm that the rehearsing suppresses card