data class Replacement
Replacements are applied in order, starting with the initial context:
[“this are an red door|”] => [(“are” => “is”, start=5, end=9)
[“this is an red door|”] => [(“an” => “a”, start=8, end=10)
[“this is a red door|”]
Replacement(original: String, replacement: String, start: Int, end: Int)
val original: String
The substring in the original text context that will be replaced by replacement in the range from start to end.
val replacement: String
The string that should replace original as for the replacement.
val start: Int
The start position in the original text context that is affected by the replacement.
val end: Int
The end position in the original text context that is affected by the replacement.
If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.
Last updated on July 29, 2022