aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/lang_detection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/lang_detection.h')
-rw-r--r--src/libmime/lang_detection.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libmime/lang_detection.h b/src/libmime/lang_detection.h
index 79be098be..9373b09f2 100644
--- a/src/libmime/lang_detection.h
+++ b/src/libmime/lang_detection.h
@@ -26,7 +26,6 @@ struct rspamd_language_elt;
struct rspamd_lang_detector_res {
gdouble prob;
- gdouble total_words;
const gchar *lang;
struct rspamd_language_elt *elt;
};
@@ -53,9 +52,9 @@ void rspamd_language_detector_to_ucs (struct rspamd_lang_detector *d,
* @param d
* @param ucs_tokens
* @param words_len
- * @return language code or NULL if language has not been detected
+ * @return array of struct rspamd_lang_detector_res sorted by freq descending
*/
-const gchar * rspamd_language_detector_detect (struct rspamd_lang_detector *d,
+GPtrArray * rspamd_language_detector_detect (struct rspamd_lang_detector *d,
GPtrArray *ucs_tokens, gsize words_len);
#endif