summaryrefslogtreecommitdiffstats
path: root/src/libmime/lang_detection.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-15 14:47:18 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-15 14:47:18 +0000
commitf4d3c21d16cd1c71f7a4bb7772e77e768a7ab8d1 (patch)
tree84b5d411e9192dfb3a003f115faf58ba89afacbc /src/libmime/lang_detection.h
parent3dadbb5159db3a59342834082144690588aa61db (diff)
downloadrspamd-f4d3c21d16cd1c71f7a4bb7772e77e768a7ab8d1.tar.gz
rspamd-f4d3c21d16cd1c71f7a4bb7772e77e768a7ab8d1.zip
[Feature] Store stop words and allow to query them
Diffstat (limited to 'src/libmime/lang_detection.h')
-rw-r--r--src/libmime/lang_detection.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libmime/lang_detection.h b/src/libmime/lang_detection.h
index 50fe19b6e..204bdf9af 100644
--- a/src/libmime/lang_detection.h
+++ b/src/libmime/lang_detection.h
@@ -84,4 +84,14 @@ gboolean rspamd_language_detector_detect (struct rspamd_task *task,
struct rspamd_lang_detector *d,
struct rspamd_mime_text_part *part);
+/**
+ * Returns TRUE if the specified word is known to be a stop word
+ * @param d
+ * @param word
+ * @param wlen
+ * @return
+ */
+gboolean rspamd_language_detector_is_stop_word (struct rspamd_lang_detector *d,
+ const gchar *word, gsize wlen);
+
#endif