<commit_before>literumilo
==========

This library provides a GUI for adding spell-checking to JTextComponents with a pluggable spelling library.

---

Until hunspell gets added to the Maven Central, you will have to install it as `dk.dren:hunspell:1.3.2` in your local repository/Nexus installation.

---

In order to use the library, you must first initialize the `Spellchecker` to be used by the library.  As an example, for `HunspellSpellchecker` one would do something like the following:

```java
Dictionary dict = ... // retrieve HunspellJNA dictionary.

HunspellSpellchecker spellchecker = new HunspellSpellchecker();
spellchecker.addDictionary(new Locale("en", "US"), /* or whatever locale you wish */
                            dict);

Literumilo.setSpellchecker(spellchecker);<commit_msg>update the README with new information<commit_after>literumilo
==========

This library provides a GUI for adding spell-checking to JTextComponents with a pluggable spelling library.

---

In order to use the library, you must first initialize the `Spellchecker` to be used by the library.  As an example, for `HunspellSpellchecker` one would do something like the following:

```java
Hunspell dict = ... // retrieve HunspellBridJ dictionary.

HunspellSpellchecker spellchecker = new HunspellSpellchecker();
spellchecker.addDictionary(new Locale("en", "US"), /* or whatever locale you wish */
                            dict);

Literumilo.setSpellchecker(spellchecker);
{'fraction_non_alphanumeric': 0.09047619047619047, 'fraction_numerical': 0.0020408163265306124, 'mean_word_length': 4.143356643356643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6357546', 'n_tokens_mistral': 407, 'n_tokens_neox': 419, 'n_words': 157}