@@ -74,22 +74,6 @@ int fossil_io_soap_check_grammar(const char *text);
74
74
*/
75
75
char *fossil_io_soap_normalize (const char *text);
76
76
77
- /* *
78
- * @brief Analyze the sentiment of the input text.
79
- *
80
- * @param text The input string.
81
- * @return A string like "positive", "negative", or "neutral".
82
- */
83
- const char *fossil_io_soap_detect_sentiment (const char *text);
84
-
85
- /* *
86
- * @brief Detect potential hate speech or harmful content.
87
- *
88
- * @param text The input string.
89
- * @return 1 if harmful content is detected, 0 otherwise.
90
- */
91
- int fossil_io_soap_detect_harmful_content (const char *text);
92
-
93
77
/* *
94
78
* @brief Normalize internet slang or leetspeak in input text.
95
79
*
@@ -106,14 +90,6 @@ char *fossil_io_soap_normalize_slang(const char *text);
106
90
*/
107
91
char *fossil_io_soap_correct_grammar (const char *text);
108
92
109
- /* *
110
- * @brief Evaluate the clarity and readability level of the input text.
111
- *
112
- * @param text The input string.
113
- * @return Readability score (e.g., Flesch-Kincaid grade level).
114
- */
115
- float fossil_io_soap_evaluate_readability (const char *text);
116
-
117
93
/* *
118
94
* @brief Detect exaggeration or hyperbolic language in a sentence.
119
95
*
@@ -138,30 +114,6 @@ char *fossil_io_soap_filter_offensive(const char *text);
138
114
*/
139
115
int fossil_io_soap_detect_clickbait (const char *text);
140
116
141
- /* *
142
- * @brief Detect logical fallacies or flawed reasoning in a sentence.
143
- *
144
- * @param text The input string.
145
- * @return A string describing the detected fallacy, or NULL if none found.
146
- */
147
- const char *fossil_io_soap_detect_fallacy (const char *text);
148
-
149
- /* *
150
- * @brief Summarize the key idea in the input sentence.
151
- *
152
- * @param text The input string.
153
- * @return A dynamically allocated short summary (must be freed).
154
- */
155
- char *fossil_io_soap_summarize (const char *text);
156
-
157
- /* *
158
- * @brief Score how polite or impolite the tone of the input is.
159
- *
160
- * @param text The input string.
161
- * @return A score from 0.0 (rude) to 1.0 (very polite).
162
- */
163
- float fossil_io_soap_politeness_score (const char *text);
164
-
165
117
#ifdef __cplusplus
166
118
}
167
119
@@ -272,36 +224,6 @@ namespace fossil {
272
224
return fossil_io_soap_detect_tone (text);
273
225
}
274
226
275
- /* *
276
- * @brief Analyze sentiment in the input ("positive", "neutral", "negative").
277
- *
278
- * @param text The input string.
279
- * @return Sentiment label.
280
- */
281
- static std::string detect_sentiment (const std::string &text) {
282
- return std::string (fossil_io_soap_detect_sentiment (text.c_str ()));
283
- }
284
-
285
- /* *
286
- * @brief Analyze sentiment (C-style).
287
- *
288
- * @param text The input string.
289
- * @return Sentiment label string.
290
- */
291
- static const char * detect_sentiment (const char * text) {
292
- return fossil_io_soap_detect_sentiment (text);
293
- }
294
-
295
- /* *
296
- * @brief Check for harmful or inappropriate content.
297
- *
298
- * @param text The input string.
299
- * @return true if flagged, false otherwise.
300
- */
301
- static bool is_harmful (const std::string &text) {
302
- return fossil_io_soap_detect_harmful_content (text.c_str ()) != 0 ;
303
- }
304
-
305
227
/* *
306
228
* @brief Check if the input contains exaggerated or hyperbolic language.
307
229
*
@@ -376,26 +298,6 @@ namespace fossil {
376
298
std::unique_ptr<char , decltype (&free)> ptr (fossil_io_soap_summarize (text.c_str ()), free);
377
299
return ptr ? std::string (ptr.get ()) : std::string{};
378
300
}
379
-
380
- /* *
381
- * @brief Return a readability score (e.g., Flesch-Kincaid).
382
- *
383
- * @param text The input string.
384
- * @return Readability score as a float.
385
- */
386
- static float readability_score (const std::string &text) {
387
- return fossil_io_soap_evaluate_readability (text.c_str ());
388
- }
389
-
390
- /* *
391
- * @brief Compute a politeness score (0.0 = rude, 1.0 = very polite).
392
- *
393
- * @param text The input string.
394
- * @return Politeness score.
395
- */
396
- static float politeness_score (const std::string &text) {
397
- return fossil_io_soap_politeness_score (text.c_str ());
398
- }
399
301
};
400
302
401
303
} // namespace io
0 commit comments