Simple stemmer for Croatian
===========================

Algorithm, rule table, and transformation table by:
    Nikola Ljubešić and Ivan Pandžić (2012)

Source:
    "A Simple Stemmer for Croatian"
    http://nlp.ffzg.hr/resources/tools/stemmer-for-croatian/
    (now served from: https://nlp.ffzg.unizg.hr/resources/tools/stemmer-for-croatian/)

The original tool is published by the University of Zagreb, Faculty of
Humanities and Social Sciences (FFZG) Natural Language Processing group under:

    Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
    https://creativecommons.org/licenses/by-sa/3.0/

----------------------------------------------------------------------
CC BY-SA 3.0 — Human-readable summary (full legal text at the URL above)
----------------------------------------------------------------------

You are free to:

  * Share — copy and redistribute the material in any medium or format.
  * Adapt — remix, transform, and build upon the material for any purpose,
    even commercially.

Under the following terms:

  * Attribution — You must give appropriate credit, provide a link to the
    license, and indicate if changes were made. You may do so in any
    reasonable manner, but not in any way that suggests the licensor
    endorses you or your use.

  * ShareAlike — If you remix, transform, or build upon the material, you
    must distribute your contributions under the same license as the
    original.

  * No additional restrictions — You may not apply legal terms or
    technological measures that legally restrict others from doing anything
    the license permits.

----------------------------------------------------------------------
Modifications made by BrainPalace
----------------------------------------------------------------------

The verbatim rule table (`rules.txt`) and transformation table
(`transformations.txt`) and the core algorithm functions
(istakniSlogotvornoR / imaSamoglasnik / transformiraj / korjenuj) from the
upstream work were inlined into `croatian_stemmer.py`. The stdin/stdout/file
I/O driver, the `__main__` entry point, and the upstream's own inline
stop-word handling were removed. A single-token entry point `stem_word()` was
added so the stemmer can be driven one already-lowercased token at a time
(BrainPalace tokenizes and applies stop-words separately).

Per the ShareAlike term, this adapted vendored stemmer remains under
CC BY-SA 3.0.
