Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support changing tokens in morph plugins #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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