Class SimpleReplaceSoftRule


public class SimpleReplaceSoftRule extends AbstractSimpleReplaceRule
A rule that matches words for which better alternatives exist and suggests them instead. On top of generic replacement list supports allowed word contexts, e.g. спасіння=ctx: релігія,поезія|рятування|... Loads the relevant words from rules/uk/replace_soft.txt. TODO: AbstractSimpleReplaceRule loads context as part of suggestion list and to be able to merge contexts for different lemmas we need to extract context out of suggestions list on every match. We may need to write our own replacement loader to make it right.
Author:
Andriy Rysin