Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Word

Defines a word.

Hierarchy

  • Word

Index

Constructors

  • new Word(id: string, partOfSpeech: PartOfSpeech, attributionText: undefined | string, attributionUrl: undefined | string, sourceDictionary: undefined | string, text: undefined | string, sequence: string, score: number, lables: Label[], citations: Citation[], word: string, relatedWords: RelatedWord[], exampleUses: ExampleUse[], wordnikUrl: string): Word
  • Constructor for a word.

    Parameters

    • id: string

      The id of the word.

    • partOfSpeech: PartOfSpeech

      The part of speech of the word.

    • attributionText: undefined | string

      The attribution text of the word.

    • attributionUrl: undefined | string

      The attribution url of the word.

    • sourceDictionary: undefined | string

      The source dictionary of the word.

    • text: undefined | string

      The text definition of the word.

    • sequence: string
    • score: number

      The score of the word.

    • lables: Label[]

      Word labels.

    • citations: Citation[]

      Citations for the word.

    • word: string

      The word.

    • relatedWords: RelatedWord[]

      Related words.

    • exampleUses: ExampleUse[]

      Example uses.

    • wordnikUrl: string

      The Wordnik url.

    Returns Word

Properties

attributionText: undefined | string
attributionUrl: undefined | string
citations: Citation[]
exampleUses: ExampleUse[]
id: string
lables: Label[]
partOfSpeech: PartOfSpeech
relatedWords: RelatedWord[]
score: number
sequence: string
sourceDictionary: undefined | string
text: undefined | string
word: string
wordnikUrl: string

Generated using TypeDoc