@@ -136,6 +136,54 @@ int fossil_io_soap_detect_offensive(const char *text);
136136 */
137137int fossil_io_soap_detect_neutral (const char *text);
138138
139+ /* *
140+ * @brief Detect hype-related phrases in text.
141+ *
142+ * @param text Input text to scan.
143+ * @return Non-zero if hype phrases are detected, 0 otherwise.
144+ */
145+ int fossil_io_soap_detect_hype (const char *text);
146+
147+ /* *
148+ * @brief Detect quality-related phrases in text.
149+ *
150+ * @param text Input text to scan.
151+ * @return Non-zero if quality phrases are detected, 0 otherwise.
152+ */
153+ int fossil_io_soap_detect_quality (const char *text);
154+
155+ /* *
156+ * @brief Detect political content in text.
157+ *
158+ * @param text Input text to scan.
159+ * @return Non-zero if political patterns are detected, 0 otherwise.
160+ */
161+ int fossil_io_soap_detect_political (const char *text);
162+
163+ /* *
164+ * @brief Detect conspiracy-related content in text.
165+ *
166+ * @param text Input text to scan.
167+ * @return Non-zero if conspiracy patterns are detected, 0 otherwise.
168+ */
169+ int fossil_io_soap_detect_conspiracy (const char *text);
170+
171+ /* *
172+ * @brief Detect marketing/jargon-heavy content in text.
173+ *
174+ * @param text Input text to scan.
175+ * @return Non-zero if marketing patterns are detected, 0 otherwise.
176+ */
177+ int fossil_io_soap_detect_marketing (const char *text);
178+
179+ /* *
180+ * @brief Detect technobabble or meaningless jargon in text.
181+ *
182+ * @param text Input text to scan.
183+ * @return Non-zero if technobabble patterns are detected, 0 otherwise.
184+ */
185+ int fossil_io_soap_detect_technobabble (const char *text);
186+
139187// filter functions
140188
141189/* *
@@ -357,6 +405,66 @@ namespace fossil {
357405 return fossil_io_soap_detect_neutral (text.c_str ()) != 0 ;
358406 }
359407
408+ /* *
409+ * @brief Detects if a given text contains hype-related content.
410+ *
411+ * @param text Input string to analyze
412+ * @return true if hype detected, false otherwise
413+ */
414+ static bool is_hype (const std::string &text) {
415+ return fossil_io_soap_detect_hype (text.c_str ()) != 0 ;
416+ }
417+
418+ /* *
419+ * @brief Detects if a given text contains high-quality phrasing.
420+ *
421+ * @param text Input string to analyze
422+ * @return true if quality phrasing detected, false otherwise
423+ */
424+ static bool is_quality (const std::string &text) {
425+ return fossil_io_soap_detect_quality (text.c_str ()) != 0 ;
426+ }
427+
428+ /* *
429+ * @brief Detects if a given text contains political content.
430+ *
431+ * @param text Input string to analyze
432+ * @return true if political content detected, false otherwise
433+ */
434+ static bool is_political (const std::string &text) {
435+ return fossil_io_soap_detect_political (text.c_str ()) != 0 ;
436+ }
437+
438+ /* *
439+ * @brief Detects if a given text contains conspiracy-related content.
440+ *
441+ * @param text Input string to analyze
442+ * @return true if conspiracy content detected, false otherwise
443+ */
444+ static bool is_conspiracy (const std::string &text) {
445+ return fossil_io_soap_detect_conspiracy (text.c_str ()) != 0 ;
446+ }
447+
448+ /* *
449+ * @brief Detects if a given text contains marketing/jargon-heavy content.
450+ *
451+ * @param text Input string to analyze
452+ * @return true if marketing jargon detected, false otherwise
453+ */
454+ static bool is_marketing (const std::string &text) {
455+ return fossil_io_soap_detect_marketing (text.c_str ()) != 0 ;
456+ }
457+
458+ /* *
459+ * @brief Detects if a given text contains technobabble or meaningless jargon.
460+ *
461+ * @param text Input string to analyze
462+ * @return true if technobabble detected, false otherwise
463+ */
464+ static bool is_technobabble (const std::string &text) {
465+ return fossil_io_soap_detect_technobabble (text.c_str ()) != 0 ;
466+ }
467+
360468 /* *
361469 * @brief Fix common grammar errors in input text.
362470 *
0 commit comments