Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
spideyfusion committed Feb 17, 2017
0 parents commit 9f2f589
Show file tree
Hide file tree
Showing 6 changed files with 216,968 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Petar Obradović

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Elasticsearch compatible Hunspell dictionary for Croatian

This dictionary is meant to be used in combination with Elasticsearch's [Hunspell Stemmer](https://www.elastic.co/guide/en/elasticsearch/guide/current/hunspell.html) in order to provide support for searching of Croatian words inside documents. It's based on LibreOffice's [dictionary](https://github.com/LibreOffice/dictionaries/tree/master/hr_HR).

## Differences

### Removed diacritics

All diacritic letters (č, ć, đ, š, ž) have been substituted with their ASCII equivalents since native Croatian speakers don't tend to use them at search time.

### Removed comments

All comments have been omitted from the affix file in order to preserve compatibility with Apache Lucene's dictionary parser.

## Installation

* Place all the files from the root of this repository to `./hunspell/hr_HR/` (relative to Elasticsearch's configuration directory, usually `/etc/elasticsearch/`).
* If Elasticsearch is already running, restart it.

## Credits

* Thanks to [Kruno](mailto:[email protected]) for maintaining LibreOffice's dictionary.

## License

See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT). The unmodified dictionary license can be found in the [README_hr_HR](README_hr_HR.txt) text file.
15 changes: 15 additions & 0 deletions README_hr_HR.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Husnpellov rječnik za računalnu provjeru pravopisa hrvatskog jezika

Ovaj je rječnik nadopuna i nadogradnja rječnika D. L. iz 2003. g. [1]

Language: Croatian (hr HR).
License: LGPL/SISSL license, 2016
Author: k r u n o . s e [ a t ] g m x . c o m (Kruno)


Language: Croatian (hr HR).
License: LGPL/SISSL license, 2003
Author: d e l a c k o [ a t ] l i n u x . h r (Denis Lackovic)


[1] http://cvs.linux.hr/spell/
Loading

0 comments on commit 9f2f589

Please sign in to comment.