Home > harper.js > Suggestion > get_replacement_text

Suggestion.get_replacement_text() method

Get the text that is going to replace the problematic section. If [Self::kind] is SuggestionKind::Remove, this will return an empty string.

Signature:

get_replacement_text(): string;

Returns:

string