Gist ccc08dae693660d7aa1b8cf2708fd13d
✓ Published0🌍 Public
CCliffordAnderson
Last edited Nov 18, 2016
Created on Nov 18, 2016
This example demonstrates how to query and highlight text passages in the Victorian Women Writers Project TEI corpus using XQuery 3.1. It shows a progression from simple full-text searches for repeated terms to fuzzy matching via `ft:search` and `ft:extract`, and finally visualizes results by marking hits with `ft:mark` and segmenting them into tumbling windows. The code relies on BaseX’s full-text and windowing capabilities to extract and structure paragraph-level matches containing “garden” or “house.”
AI-generated description