Text.KWIC.Match (Text v0.5.0)

Copy Markdown View Source

A single keyword-in-context occurrence.

Fields

  • position — zero-based token index within the document where the match occurred.

  • left — list of tokens preceding the match, in order.

  • term — the matched token, in its original casing.

  • right — list of tokens following the match, in order.

Summary

Types

t()

@type t() :: %Text.KWIC.Match{
  left: [String.t()],
  position: non_neg_integer(),
  right: [String.t()],
  term: String.t()
}