Tools.CollocatesGraph()

new CollocatesGraph()

Collocates Graph represents keywords and terms that occur in close proximity as a force directed network graph.

Tutorials:
Example
let config = {
    centralize: null,
    context: 5,
    limit: 5,
    query: null,
    stopList: "auto",
  };

  loadCorpus("austen").tool("collocatesgraph", config);

Members

centralize

Properties:
Name Type Description
centralize String

If specified, will "centralize" on this keyword

context

Properties:
Name Type Default Description
context Number 5

The number of terms to consider on each side of the keyword.

limit

Properties:
Name Type Default Description
limit Number 5

The number of items to limit the result to.

query

Properties:
Name Type Description
query String | Array.<String>

A query or array of queries (queries can be separated by a comma). For query syntax, see the search documentation.

stopList

Properties:
Name Type Default Description
stopList String auto

A comma-separated list of words, a named list or a URL to a plain text list, one word per line. By default this is set to 'auto' which auto-detects the document's language and loads an appropriate list (if available for that language). Set this to blank to not use the default stopList. For more information see the Stopwords documentation.