package stem

  1. Overview
  2. Docs
A stemmer of words for few languages

Install

dune-project
 Dependency

Authors

Maintainers

Sources

stem-0.0.2.tbz
sha256=830e8693a19996caa7745fc67c6d3655b29128d253ff78088e77faba9ad7b488
sha512=d89a8246864f204fbaa159d7c09517003838913944f4a6235b63efb8e4e96fb1872baaa8563392b8e3a4e2354baf363b5e15ed2899f60d8cbf66bbcfdb6d2d85

doc/stem.snowball/Snowball/index.html

Module SnowballSource

Sourcetype encoding =
  1. | ISO_8859_1
  2. | ISO_8859_2
  3. | KOI8_R
  4. | UTF_8

Type of encodings.

Sourceval pp_encoding : Format.formatter -> encoding -> unit
Sourcetype t

Type of stemmers.

Sourcemodule Language : sig ... end
Sourceval languages : Language.t list

Languages available for stemming.

Sourceval porter : Language.t
Sourceval create : ?encoding:encoding -> Language.t -> t

create ?encoding language creates a stemmer which can be used to stem words via stem.

NOTE: it's important to release (via remove a t when you are done about stemming.

Sourceval remove : t -> unit

remove stemmer destroys the underlying structure used to stem words.

Sourceval stem : t -> string -> string

stem stemmer word stems the given word with the given stemmer (which corresponds to the language we use).