Lectern

v1.0.0
io.github.Noah-Airmet/lectern Checked 9 hours ago Published 9 days ago

Public-domain Latter-day Saint and Christian scholarship, searchable and citable to the page.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fetch Read a document or page

Read the library. id is what search returned or what you want to open: - a book, jod:01 (or its scan, jod:01/r1): its record, with authors, publisher, year, the public-domain evidence and the contents where the scan has them; - a page, npnf2:04-select-works-and-letters/r1/p65: its full text; - a range of up to 8 pages, jod:01/r1/p40-p44. A result url works as an id too. Each page comes back with the url to cite. Long reads are cut at max_tokens (default 6000) with a note saying how to continue. view="image" adds a link to the page's image, which is the authority where the OCR is unclear. Pag…

ParameterTypeDescription
id *stringA document id, a cite string such as arxiv:2305.15324/v2/p6, a range of up to 8 units, or a result url.
max_tokensinteger
viewstringimage adds page image links (open PDFs).

verify_quote Check a quotation

Check a quotation before you use it. Pass the exact words you intend to put in quotation marks, and the cite (id or url) you intend to attach. Join omitted stretches with "..." as you would in print. Verdicts: exact and normalized pass (normalized forgives case, punctuation, hyphenation, ligatures and line breaks, never wording). elsewhere means the words are in that book but not on the cited page; the result gives the right page. near_miss means something close is there but not these words; the result shows the page's own words and the difference, so quote those instead. not_found means the…

ParameterTypeDescription
quote *stringThe exact words you intend to put in quotation marks; '...' joins fragments.
citeThe cite string or url you will attach to it.
docWithout cite: check against this whole document.

check_answer Check an answer's citations

Audit a draft answer before you give it. Pass the answer's full text (markdown, up to 40,000 characters), with its citations as library urls or cite strings and its quotations in quotation marks or as > blockquotes. For every citation it says whether the book, scan and page exist; for every quotation, whether it is on the page cited next to it (the same verdicts as verify_quote), and which quotations have no citation at all. Fix what fails and run it again. It checks links and quotations only. It does not check whether a page supports the claim you make about it: read the cited pages for tha…

ParameterTypeDescription
text *stringThe draft answer, in markdown, with its citations and quotations.