Changeset View
Changeset View
Standalone View
Standalone View
src/core/guesslanguage.h
Show All 22 Lines | |||||
23 | #include <QtCore/QString> | 23 | #include <QtCore/QString> | ||
24 | #include <QtCore/QLocale> | 24 | #include <QtCore/QLocale> | ||
25 | 25 | | |||
26 | #include "sonnetcore_export.h" | 26 | #include "sonnetcore_export.h" | ||
27 | 27 | | |||
28 | namespace Sonnet | 28 | namespace Sonnet | ||
29 | { | 29 | { | ||
30 | 30 | | |||
31 | // Amount of trigrams in each file | ||||
32 | static const int MAXGRAMS = 300; | ||||
33 | | ||||
31 | class GuessLanguagePrivate; | 34 | class GuessLanguagePrivate; | ||
32 | 35 | | |||
33 | /** | 36 | /** | ||
34 | * @short GuessLanguage determines the language of a given text. | 37 | * @short GuessLanguage determines the language of a given text. | ||
35 | * | 38 | * | ||
36 | * GuessLanguage can determine the differnce between ~75 languages for a given string. It is | 39 | * GuessLanguage can determine the differnce between ~75 languages for a given string. It is | ||
37 | * based off a perl script origionaly written by Maciej Ceglowski <maciej@ceglowski.com> | 40 | * based off a perl script origionaly written by Maciej Ceglowski <maciej@ceglowski.com> | ||
38 | * called Languid. His script used a 2 part huristic to determine language. First the text | 41 | * called Languid. His script used a 2 part huristic to determine language. First the text | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |