I open-sourced the counting tool, and it immediately caught two of its own bugs
Описание и применение
Автор опубликовал инструмент подсчёта фразы «fear not» в Библии, который выявил две скрытые ошибки: подсчёт подстрок и удаление пунктуации. После исправления правил подсчёта результаты подтвердились тестами на полном корпусе KJV и CUV.
Задача
A counting tool for the phrase "fear not" in the King James Bible produced incorrect counts due to substring matching and punctuation handling.
Результат
The tool identified two silent bugs that caused incorrect counts, leading to corrected counting rules and validated results against the full KJV and CUV corpora.
Рабочий процесс
- 1. Publish initial count of "fear not" in KJV.
- 2. Release counting code as open-source tool.
- 3. Run tool over full KJV corpus.
- 4. Compare tool output to published per-verse audit trail.
- 5. Identify substring and punctuation bugs.
- 6. Correct counting rules: whole-word matching, punctuation not used as glue.
- 7. Re-run tests to confirm agreement with audit trail.
Доказательства
A naive search for fear also matches fearful, fearfulness, and God-fearing. That inflates a raw count by roughly 15% and looks completely reasonable on the screen.
I normalised away punctuation so fear not. and fear not would match. But stripping punctuation also turns 1 Peter 2:18 — into the string ...all fear not only..., which contains the phrase "fear not" even though the verse does not say it.
node test.mjs # ok — tool and audit trail agree over the full KJV (31,102 v) and CUV (31,100 v)
- Дата записи: 2026-10-02T01:41:13.471Z