Skip to content

Conversation

@erankor
Copy link

@erankor erankor commented Jan 2, 2017

Currently pre/post morph plugins cannot change the searched tokens since they get a local copy of the token (sTmp) which is only used to determine whether the token word exists or not. Assuming the token word exists in the dictionary, the code uses the original sToken as the searched keyword.
This patch simply makes sToken point to the local sTmp variable (which is controllable from a morph plugin) when the word exists.
When a morph plugin is not present, sTmp is the same as sToken (it is copied from it a few lines above) and this change has no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant