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

Intelligently matching term:[phrase] to other phrase forms #301

Open
ronaldtse opened this issue Jul 3, 2020 · 1 comment
Open

Intelligently matching term:[phrase] to other phrase forms #301

ronaldtse opened this issue Jul 3, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

e.g. in metanorma/stepmod-utils#23

The directive of term:[individual products] is provided but the actual term is "individual product".

By using word stemmers we could potentially match the words used in the definitions to the defined terms of the document.

For example, ruby-stemmer uses Snowball which converts both the singular "individual product" and "individual products" into "individu product".

There is certainly an issue if the dictionary contains very short phrases like "to" then there is a problem.

There are 2 steps we can do this:

  1. Automatically, by checking all matches in definition text (e.g. definition contains "individual products", we match it to "individual product".
  2. When the user specifies (e.g. term:[individual products] instead of term:[individual products, individual product])
@ronaldtse ronaldtse added the enhancement New feature or request label Jul 3, 2020
@ronaldtse
Copy link
Contributor Author

https://github.com/yohasebe/lemmatizer/ may also be an option but it requires a dictionary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants