-
- All Implemented Interfaces:
public class LanguageDetectorBuilder.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static LanguageDetectorBuilder.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final LanguageDetectorBuilderfromAllLanguages()Creates and returns an instance of LanguageDetectorBuilder with all built-in languages. final LanguageDetectorBuilderfromAllSpokenLanguages()Creates and returns an instance of LanguageDetectorBuilder with all built-in still spoken languages. final LanguageDetectorBuilderfromAllLanguagesWithArabicScript()Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Arabic script. final LanguageDetectorBuilderfromAllLanguagesWithCyrillicScript()Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Cyrillic script. final LanguageDetectorBuilderfromAllLanguagesWithDevanagariScript()Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Devanagari script. final LanguageDetectorBuilderfromAllLanguagesWithLatinScript()Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Latin script. final LanguageDetectorBuilderfromAllLanguagesWithout(Language languages)Creates and returns an instance of LanguageDetectorBuilder with all built-in languages except those specified in languages. final LanguageDetectorBuilderfromLanguages(Language languages)Creates and returns an instance of LanguageDetectorBuilder with the specified languages. final LanguageDetectorBuilderfromIsoCodes639_1(IsoCode639_1 isoCodes)Creates and returns an instance of LanguageDetectorBuilder with the languages specified by the respective ISO 639-1 codes. final LanguageDetectorBuilderfromIsoCodes639_3(IsoCode639_3 isoCodes)Creates and returns an instance of LanguageDetectorBuilder with the languages specified by the respective ISO 639-3 codes. -
-
Method Detail
-
fromAllLanguages
final LanguageDetectorBuilder fromAllLanguages()
Creates and returns an instance of LanguageDetectorBuilder with all built-in languages.
-
fromAllSpokenLanguages
final LanguageDetectorBuilder fromAllSpokenLanguages()
Creates and returns an instance of LanguageDetectorBuilder with all built-in still spoken languages.
-
fromAllLanguagesWithArabicScript
final LanguageDetectorBuilder fromAllLanguagesWithArabicScript()
Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Arabic script.
-
fromAllLanguagesWithCyrillicScript
final LanguageDetectorBuilder fromAllLanguagesWithCyrillicScript()
Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Cyrillic script.
-
fromAllLanguagesWithDevanagariScript
final LanguageDetectorBuilder fromAllLanguagesWithDevanagariScript()
Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Devanagari script.
-
fromAllLanguagesWithLatinScript
final LanguageDetectorBuilder fromAllLanguagesWithLatinScript()
Creates and returns an instance of LanguageDetectorBuilder with all built-in languages supporting the Latin script.
-
fromAllLanguagesWithout
final LanguageDetectorBuilder fromAllLanguagesWithout(Language languages)
Creates and returns an instance of LanguageDetectorBuilder with all built-in languages except those specified in languages.
- Parameters:
languages- The languages to exclude from the set of built-in languages.
-
fromLanguages
final LanguageDetectorBuilder fromLanguages(Language languages)
Creates and returns an instance of LanguageDetectorBuilder with the specified languages.
- Parameters:
languages- The languages to use.
-
fromIsoCodes639_1
final LanguageDetectorBuilder fromIsoCodes639_1(IsoCode639_1 isoCodes)
Creates and returns an instance of LanguageDetectorBuilder with the languages specified by the respective ISO 639-1 codes.
- Parameters:
isoCodes- The ISO 639-1 codes to use.
-
fromIsoCodes639_3
final LanguageDetectorBuilder fromIsoCodes639_3(IsoCode639_3 isoCodes)
Creates and returns an instance of LanguageDetectorBuilder with the languages specified by the respective ISO 639-3 codes.
- Parameters:
isoCodes- The ISO 639-3 codes to use.
-
-
-
-