com.aspose.ocr

## Interface ILanguage

-     public interface ILanguage

  This interface represents recognition language. Instance of this can be construct only in `Language` factory.

  >      OcrEngine ocr = new OcrEngine();
  >      ocr.getLanguages().addLanguage(Language.load("english"));
  >      ocr.getLanguages().addLanguage(Language.load("spain"));

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addWord(String word)` Adds the word to the dictionary.
    `String` | `getAlphabet()` Gets the alphabet.
    `String[]` | `getCharsByClass()` Returns all chars ordered by theirs classes: ba dg sa ss
    `String` | `getClassName(char ch)` Returns name of the class input character is refers to.
    `String` | `getLanguage()` Gets the name of language.
    `void` | `save()` Saves changes.

- - ### Method Detail

    - #### addWord

          void addWord(String word)

      Adds the word to the dictionary.
      Parameters:
        `word` - The word to add.

    - #### getAlphabet

          String getAlphabet()

      Gets the alphabet.
      Returns:
        The alphabet.

    - #### getCharsByClass

          String[] getCharsByClass()

      Returns all chars ordered by theirs classes: ba dg sa ss
      Returns:
        All chars ordered by theirs classes: ba dg sa ss

    - #### getClassName

          String getClassName(char ch)

      Returns name of the class input character is refers to. For example letter "x" is small_letter
      Parameters:
        `ch` - The input character.
      Returns:
        The character class name.

    - #### getLanguage

          String getLanguage()

      Gets the name of language.
      Returns:
        The name of language.

    - #### save

          void save()

      Saves changes.

Copyright © 2014. All rights reserved.