{"id":19458511,"url":"https://github.com/postgrespro/hunspell_dicts","last_synced_at":"2025-02-25T11:42:41.131Z","repository":{"id":69542777,"uuid":"58131970","full_name":"postgrespro/hunspell_dicts","owner":"postgrespro","description":"Hunspell dictionaries for PostgreSQL","archived":false,"fork":false,"pushed_at":"2019-11-25T12:38:43.000Z","size":6656,"stargazers_count":63,"open_issues_count":3,"forks_count":17,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-02-22T17:12:34.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postgrespro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-05T13:16:03.000Z","updated_at":"2024-09-27T05:49:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f11fa76d-b987-4889-835a-0d71908cfdd9","html_url":"https://github.com/postgrespro/hunspell_dicts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fhunspell_dicts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fhunspell_dicts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fhunspell_dicts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgrespro%2Fhunspell_dicts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postgrespro","download_url":"https://codeload.github.com/postgrespro/hunspell_dicts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240662852,"owners_count":19837369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T17:27:24.116Z","updated_at":"2025-02-25T11:42:41.075Z","avatar_url":"https://github.com/postgrespro.png","language":"TSQL","funding_links":[],"categories":["TSQL"],"sub_categories":[],"readme":"# Hunspell dictionaries\n\n## Introduction\n\nThe repository contains hunspell dictionaries for several languages listed below.\n\n## Installation\n\nHere the example of installation of the english dictionary:\n\n    $ git clone https://github.com/postgrespro/hunspell_dicts\n    $ cd hunspell_dicts/hunspell_en_us\n    $ make USE_PGXS=1 install\n    $ make USE_PGXS=1 installcheck\n    $ psql DB -c \"CREATE EXTENSION hunspell_en_us;\"\n\n\u003e **Important:** Don't forget to set the `PG_CONFIG` variable in case you want to test dictionaries on a custom build of PostgreSQL. Read more [here](https://wiki.postgresql.org/wiki/Building_and_Installing_PostgreSQL_Extension_Modules).\n\nAfter the installation you can use english dictionary and configuration:\n\n```sql\n=\u003e SELECT ts_lexize('english_hunspell', 'stories');\n ts_lexize\n-----------\n {story}\n(1 row)\n\n=\u003e SELECT to_tsvector('english_hunspell', 'stories');\n to_tsvector\n-------------\n 'story':1\n(1 row)\n```\n\n## Custom installation\n\nIf you want to create a dictionary which isn't listed below, you may want to download necessary [OpenOffice](https://extensions.openoffice.org/en/search?f%5B0%5D=field_project_tags%3A157) or [LibreOffice](https://extensions.libreoffice.org/extensions?getCategories=Dictionary\u0026getCompatibility=any) extension.\n\nThen you need to do the following (from the [documentation](https://www.postgresql.org/docs/current/static/textsearch-dictionaries.html#TEXTSEARCH-ISPELL-DICTIONARY)):\n\n* OpenOffice/LibreOffice extension files have the .oxt extension. It is necessary to extract .aff and .dic files, change extensions to .affix and .dict. For some dictionary files it is also needed to convert characters to the UTF-8 encoding with commands (for example, for a Norwegian language dictionary):\n```\niconv -f ISO_8859-1 -t UTF-8 -o nn_no.affix nn_NO.aff\niconv -f ISO_8859-1 -t UTF-8 -o nn_no.dict nn_NO.dic\n```\n* copy files to the $SHAREDIR/tsearch_data directory\n* load files into PostgreSQL with the following command:\n```sql\nCREATE TEXT SEARCH DICTIONARY norwegian_hunspell (\n    TEMPLATE = ispell,\n    DictFile = nn_no,\n    AffFile = nn_no,\n    StopWords = norwegian\n);\n```\n\n## New dictionaries and configurations\n\nThe modules introduce the following dictionaries and configurations:\n\n| Module | Dictionary/Configuration |\n| ------ | ------------------------ |\n| [hunspell_cs_cz](huspell_cs_cz) | czech_hunspell |\n| [hunspell_de_de](hunspell_de_de) | german_hunspell |\n| [hunspell_en_us](hunspell_en_us) | english_hunspell |\n| [hunspell_fr](hunspell_fr) | french_hunspell |\n| [hunspell_ne_np](hunspell_ne_np) | nepali_hunspell |\n| [hunspell_nl_nl](hunspell_nl_nl) | dutch_hunspell |\n| [hunspell_nn_no](hunspell_nn_no) | norwegian_hunspell |\n| [hunspell_pt_pt](hunspell_pt_pt) | portuguese_hunspell |\n| [hunspell_ru_ru](hunspell_ru_ru) | russian_hunspell |\n| [hunspell_ru_ru_aot](hunspell_ru_ru_aot) | russian_aot_hunspell |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgrespro%2Fhunspell_dicts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostgrespro%2Fhunspell_dicts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgrespro%2Fhunspell_dicts/lists"}