@@ -75,102 +75,92 @@ int fossil_io_soap_check_grammar(const char *text);
75
75
char *fossil_io_soap_normalize (const char *text);
76
76
77
77
/* *
78
- * @brief Generate a hashed audit trail of all detected issues in input.
78
+ * @brief Analyze the sentiment of the input text .
79
79
*
80
- * @param text Input string to audit .
81
- * @return A JSON-formatted string with all flags and replacements, signed (caller must free) .
80
+ * @param text The input string .
81
+ * @return A string like "positive", "negative", or "neutral" .
82
82
*/
83
- char *fossil_io_soap_generate_audit_block (const char *text);
83
+ const char *fossil_io_soap_detect_sentiment (const char *text);
84
84
85
85
/* *
86
- * @brief Return a digest summary of all transformations made to a string .
86
+ * @brief Detect potential hate speech or harmful content .
87
87
*
88
- * @param original Original input.
89
- * @param transformed Transformed result.
90
- * @return A cryptographic hash or short audit ID.
88
+ * @param text The input string.
89
+ * @return 1 if harmful content is detected, 0 otherwise.
91
90
*/
92
- char * fossil_io_soap_diff_digest (const char *original, const char *transformed );
91
+ int fossil_io_soap_detect_harmful_content (const char *text );
93
92
94
93
/* *
95
- * @brief Generate a hashed audit trail of all detected issues in input.
94
+ * @brief Normalize internet slang or leetspeak in input text .
96
95
*
97
- * @param text Input string to audit .
98
- * @return A JSON-formatted string with all flags and replacements, signed (caller must free ).
96
+ * @param text The input string .
97
+ * @return A dynamically allocated cleaned-up version ( must be freed ).
99
98
*/
100
- char *fossil_io_soap_generate_audit_block (const char *text);
99
+ char *fossil_io_soap_normalize_slang (const char *text);
101
100
102
101
/* *
103
- * @brief Return a digest summary of all transformations made to a string .
102
+ * @brief Apply a grammar correction pass over the input text .
104
103
*
105
- * @param original Original input.
106
- * @param transformed Transformed result.
107
- * @return A cryptographic hash or short audit ID.
108
- */
109
- char *fossil_io_soap_diff_digest (const char *original, const char *transformed);
110
-
111
- /* *
112
- * @brief Detect sarcasm, satire, or irony in a phrase.
113
- *
114
- * @param text Input string.
115
- * @return 1 if detected, 0 if not.
104
+ * @param text The input text.
105
+ * @return A dynamically allocated corrected string (must be freed).
116
106
*/
117
- int fossil_io_soap_detect_sarcasm (const char *text);
107
+ char * fossil_io_soap_correct_grammar (const char *text);
118
108
119
109
/* *
120
- * @brief Determine if the tone of the input is informative, persuasive, emotional, etc .
110
+ * @brief Evaluate the clarity and readability level of the input text .
121
111
*
122
- * @param text Input text .
123
- * @return A short string such as "informative", "emotional", "neutral" .
112
+ * @param text The input string .
113
+ * @return Readability score (e.g., Flesch-Kincaid grade level) .
124
114
*/
125
- const char * fossil_io_soap_detect_intent (const char *text);
115
+ float fossil_io_soap_evaluate_readability (const char *text);
126
116
127
117
/* *
128
- * @brief Flag potentially offensive, biased, or manipulative phrases .
118
+ * @brief Detect exaggeration or hyperbolic language in a sentence .
129
119
*
130
- * @param text Input string.
131
- * @return A sanitized copy of the input with flagged content marked (caller must free) .
120
+ * @param text The input string.
121
+ * @return 1 if exaggeration detected, 0 otherwise .
132
122
*/
133
- char * fossil_io_soap_flag_ethics (const char *text);
123
+ int fossil_io_soap_detect_exaggeration (const char *text);
134
124
135
125
/* *
136
- * @brief Return a list of ethical categories the input violates .
126
+ * @brief Replace offensive language with neutral alternatives .
137
127
*
138
- * @param text Input string.
139
- * @return JSON or CSV string of category names (caller must free ).
128
+ * @param text The input string.
129
+ * @return A dynamically allocated sanitized string ( must be freed ).
140
130
*/
141
- char *fossil_io_soap_list_ethics_flags (const char *text);
131
+ char *fossil_io_soap_filter_offensive (const char *text);
142
132
143
133
/* *
144
- * @brief Load SOAP behavior extensions from a `.fish` or `.jellyfish` mindset file .
134
+ * @brief Check if input contains clickbait-style language .
145
135
*
146
- * @param filename Path to file to load .
147
- * @return 0 on success, non-zero on error .
136
+ * @param text The input string .
137
+ * @return 1 if clickbait is detected, 0 otherwise .
148
138
*/
149
- int fossil_io_soap_load_mindset_file (const char *filename );
139
+ int fossil_io_soap_detect_clickbait (const char *text );
150
140
151
141
/* *
152
- * @brief Serialize SOAP's current state into a `.jellyfish` compatible format .
142
+ * @brief Detect logical fallacies or flawed reasoning in a sentence .
153
143
*
154
- * @return A `.jellyfish` format string with active filters, models, and thresholds (caller must free).
144
+ * @param text The input string.
145
+ * @return A string describing the detected fallacy, or NULL if none found.
155
146
*/
156
- char *fossil_io_soap_export_mindset ( void );
147
+ const char *fossil_io_soap_detect_fallacy ( const char *text );
157
148
158
149
/* *
159
- * @brief Score the semantic similarity between two phrases .
150
+ * @brief Summarize the key idea in the input sentence .
160
151
*
161
- * @param a First input.
162
- * @param b Second input.
163
- * @return A similarity score from 0.0 to 1.0.
152
+ * @param text The input string.
153
+ * @return A dynamically allocated short summary (must be freed).
164
154
*/
165
- float fossil_io_soap_semantic_similarity ( const char *a, const char *b );
155
+ char *fossil_io_soap_summarize ( const char *text );
166
156
167
157
/* *
168
- * @brief Determine if the given input matches a known propaganda or meme pattern .
158
+ * @brief Score how polite or impolite the tone of the input is .
169
159
*
170
- * @param text Input to check .
171
- * @return 1 if matched, 0 otherwise .
160
+ * @param text The input string .
161
+ * @return A score from 0.0 (rude) to 1.0 (very polite) .
172
162
*/
173
- int fossil_io_soap_detect_memetic_pattern (const char *text);
163
+ float fossil_io_soap_politeness_score (const char *text);
174
164
175
165
#ifdef __cplusplus
176
166
}
0 commit comments