• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/usr/lib/swipl/library/ext/nlp/snowball.pl
All Application Manual Name SummaryHelp

  • ext
    • nlp
      • porter_stem.pl
      • snowball.pl -- The Snowball multi-lingual stemmer library
        • snowball/3
        • snowball_current_algorithm/1
      • isub.pl -- isub: a string similarity measure
      • double_metaphone.pl -- Phonetic string matching
 snowball(+Algorithm, +Input, -Stem) is det
Apply the Snowball Algorithm on Input and unify the result (an atom) with Stem.

The implementation maintains a cache of stemmers for each thread that accesses snowball/3, providing high-perfomance and thread-safety without locking.

Arguments:
Algorithm- is the (english) name for desired algorithm or an 2 or 3 letter ISO 639 language code.
Input- is the word to be stemmed. It is either an atom, string or list of chars/codes. The library accepts Unicode characters. Input must be lowercase. See downcase_atom/2.
Errors
- domain_error(snowball_algorithm, Algorithm)
- type_error(atom, Algorithm)
- type_error(text, Input)
ClioPatria (version V3.1.1-51-ga0b30a5)