File: wordsplit.mli

package info (click to toggle)
spamoracle 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 296 kB
  • sloc: ml: 1,380; makefile: 135
file content (7 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
(** Decompose a string into words. *)

val iter: (string -> unit) -> (string -> bool) -> string -> unit
  (** [iter fn db txt] applies [fn] to each word in [txt].
      [db] is a predicate that returns [true] for known words.
      It is used to recognize stretched-out words, e.g. [H.e.ll.o].
 *)