Class WordError

All Implemented Interfaces:

public class WordError
An error associated with a word from a custom language model.
  • Constructor Summary

    Constructor Description
  • Method Summary

    Modifier and Type Method Description
    String getElement()
    Gets the element.

    Methods inherited from class

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WordError

      public WordError()
  • Method Details

    • getElement

      public String getElement()
      Gets the element.

      A key-value pair that describes an error associated with the definition of a word in the words resource. The pair has the format `"element": "message"`, where `element` is the aspect of the definition that caused the problem and `message` describes the problem. The following example describes a problem with one of the word's sounds-like definitions: `"{sounds_like_string}": "Numbers are not allowed in sounds-like. You can try for example '{suggested_string}'."`.

      the element