pg_hspell
pg_hspell · Full text search dictionary template for Hebrew text using libhspell
Overview
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
- Upstream README
- Extension SQL
- Extension control file
- PostgreSQL text-search configuration documentation
pg_hspell provides an hspell text-search dictionary template that lemmatizes Hebrew words. It requires GNU/Linux and an external libhspell built with --enable-linginfo.
The extension creates a dictionary but no complete text-search configuration, so map it into a configuration explicitly:
Linguistic limits
Version 1.0 documents PostgreSQL 9.6 and later. Recognized words emit every possible lemma without contextual disambiguation, improving recall at the cost of precision. Tokens containing Niqqud are not recognized by libhspell, and PostgreSQL’s default parser can split Hebrew acronyms or abbreviations around quotes. Strip Niqqud before this dictionary and test parser mappings with representative text.