Open ronaldtse opened 4 years ago
e.g. in https://github.com/metanorma/stepmod-utils/issues/23
The directive of term:[individual products] is provided but the actual term is "individual product".
term:[individual products]
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".
ruby-stemmer
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:
term:[individual products, individual product]
https://github.com/yohasebe/lemmatizer/ may also be an option but it requires a dictionary.
e.g. in https://github.com/metanorma/stepmod-utils/issues/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:
term:[individual products]
instead ofterm:[individual products, individual product]
)