Mika Scraper / RewriteSettings
Interface: RewriteSettings
Defined in: src/humanizer/humanizer.ts:11
The RewriteSettings interface defines options for fine-tuning the behavior of text rewriting processes. Each property corresponds to a specific rewriting option that modifies the input text.
Properties
removeUnicode?
optionalremoveUnicode:booleanWhen set to
true, Unicode characters will be removed from the input text. This can be useful for sanitizing text or for compatibility with systems that do not support Unicode.
Defined in: `src/humanizer/humanizer.ts:12
dashesToCommas?
optionaldashesToCommas:booleanIf
true, all dashes in the input text will be converted to commas. This is particularly useful for formatting lists or improving readability in certain contexts.
Defined in: src/humanizer/humanizer.ts:13
removeDashes?
optionalremoveDashes:booleanWhen enabled, all dashes will be removed from the input text, which can help in cleaning up text data or formatting issues.
Defined in: src/humanizer/humanizer.ts:14
transformQuotes?
optionaltransformQuotes:booleanIf set to
true, the interface will convert straight quotes to smart quotes (curly quotes). This is useful for typographically correct text output.
Defined in: src/humanizer/humanizer.ts:15
removeWhitespace?
optionalremoveWhitespace:booleanSetting this to
truewill remove all extra whitespace from the input text, streamlining the content for further processing.
Defined in: src/humanizer/humanizer.ts:16
removeEmDash?
optionalremoveEmDash:booleanWhen this property is set to
true, all em dashes will be removed from the text. This can be helpful for maintaining uniformity in text formatting.
Defined in: src/humanizer/humanizer.ts:17
keyboardOnly?
optionalkeyboardOnly:booleanIf this property is
true, the rewriting process will only consider keyboard input characters, ignoring other characters. This is useful for applications that focus purely on user-manipulated text.
Defined in: src/humanizer/humanizer.ts:18