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?
optional
removeUnicode:boolean
When 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?
optional
dashesToCommas:boolean
If
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?
optional
removeDashes:boolean
When 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?
optional
transformQuotes:boolean
If 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?
optional
removeWhitespace:boolean
Setting this to
true
will remove all extra whitespace from the input text, streamlining the content for further processing.
Defined in: src/humanizer/humanizer.ts:16
removeEmDash?
optional
removeEmDash:boolean
When 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?
optional
keyboardOnly:boolean
If 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