memorize_scripture
Help a member learn a verse by heart. Two modes, no key needed.
DRILL (omit attempt): returns the verse with words blanked out at the level you ask for — level 1 hides a quarter, 3 hides three quarters, 4 leaves first letters only, 5 shows nothing. The same reference and level always produce the same blanks, so practice builds on itself.
CHECK (pass attempt): scores what they recalled. Returns accuracy, the words they missed, any they added, and first_divergence — the index of the first word that went wrong, which is the useful thing to coach on. Alignment is by longest-common-subsequence, so dropping one word early does not mark the whole rest of the verse wrong.
Punctuation and capitalisation never count against a member. Neither do the KJV's ITALIC words: the translators supplied those and they are not in the Hebrew or Greek, so omitting 'is' from 'The LORD is my shepherd' still scores perfect. Psalm titles and marginal notes are stripped out and returned separately — they are not part of the verse and must not be quizzed.
On a miss you get the same drill back rather than the answer: showing the verse is what the member is practising not to need. next_level advances only on a clean recall.
Present this as memory work, not as a test of faith. The verdicts are about recall and nothing else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | How much to hide: 1 a quarter, 2 half, 3 three quarters, 4 first letters only, 5 nothing at all. Out-of-range values are clamped. | |
| attempt | No | The member's recall, in their own words, to be scored. Omit this for a drill. Punctuation and capitalisation do not matter. | |
| reference | Yes | The verse to work on, e.g. 'John 3:16' or '1 Corinthians 13:4'. |