Skip to content

Conversation

@julwrites
Copy link
Owner

No description provided.

google-labs-jules bot and others added 8 commits November 29, 2025 08:22
The functionality of /lexicon is now covered by /search.
Removed:
- pkg/app/lexicon.go
- pkg/app/lexicon_test.go
- CMD_LEXICON constant and command handling
- Reference in help message
Remove /lexicon command in favor of /search
- Introduce `CMD_PASSAGE` (/passage) for explicit passage retrieval.
- Implement `ProcessNaturalLanguage` router for messages without commands.
- Add `ExtractBibleReferences` in `pkg/app/bible_reference.go` to find multiple references in text.
- Refactor `GetBibleAsk` to accept context verses.
- Route short phrases to Search and longer prompts to Ask (with extracted references).
- Add comprehensive integration tests in `pkg/app/natural_language_test.go` covering Passage, Search, and Ask scenarios.
Updated `pkg/app/bible_reference.go` to explicitly include keys for Roman numeral (e.g., "ii samuel", "i kings") and ordinal (e.g., "1st john") book names.
This resolves an issue where greedy prefix matching incorrectly parsed inputs like "II Samuel" as "1 Samuel".
Updated `pkg/app/natural_language_bible_test.go` to assert correct parsing for these cases and ensure tests pass reliably.
… docs

- Updated `CheckBibleReference` in `passage.go` to use `ParseBibleReference` instead of scraping.
- Updated `IdentifyQuery` in `tms.go` to use `ParseBibleReference` for normalization.
- Removed unused `projectID` parameter from `SubmitQuery` in `api_client.go` and updated all call sites.
- Removed unused `secrets` imports.
- Updated `README.md` and `HelpMessage` in `bot.go` to include `/search` and `/ask` commands.
…-update

Refactor: Remove scraping validation and update docs
@julwrites julwrites merged commit c93f275 into master Dec 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants