[nodebb-plugin-glossary] Glossary Plugin for NodeBB
-
@baris
[email protected]
doesn't seem to exist ?nodebb-plugin-glossary
A glossary plugin. Latest version: 1.1.0, last published: a year ago. Start using nodebb-plugin-glossary in your project by running `npm i nodebb-plugin-glossary`. There are no other projects in the npm registry using nodebb-plugin-glossary.
npm (www.npmjs.com)
-
@baris One thing I've noticed here is that the plugin seems gratuitous in terms of REGEX - it's matching on any part of the word, meaning things like
AI
is detected insidedisdain
andcertain
- is there any way we can have a setting that looks for a complete match rather than partial ? -
@baris I found the issue (for my case). In
library.js
the regex statement looks for insensitive as belowkeyword.nameRegex = XRegExp(`(?:^|\\s|\\>|;)(${keyword.name})`, 'gi');
I've changed it to
keyword.nameRegex = XRegExp(`(?:^|\\s|\\>|;)(${keyword.name})`, 'g');
Which works fine for my use case (virtually all of the acronyms I have are in upper case). However, lower case words are still affected.
Issue with over gratuitous regex 路 Issue #3 路 NodeBB/nodebb-plugin-glossary
One thing I've noticed here is that the plugin seems gratuitous in terms of REGEX - it's matching on any part of the word, meaning things like AI is detected inside disdain and certain - is there any way we can have a setting that looks ...
GitHub (github.com)
-
@baris From what I see, the plugin is actually firing on whole words
In this case, it's matching on
bits
as well asbit
(which it should)And also matching on
dev
insidedevil
EDIT: Sorry - this was due to the CSV import I have... Ignore that
-
@baris another suggestion would be to empty the table storing the glossary items. When you import 1000 plus from a CSV it's very clunky to have to delete them all one by one if you need to.
Allow option to empty glossary content 路 Issue #5 路 NodeBB/nodebb-plugin-glossary
A suggestion would be to empty the table storing the glossary items. When you import 1000 plus from a CSV it's very clunky to have to delete them all one by one 馃檪 if you need to.
GitHub (github.com)
-
@baris Thanks. I spotted a bug in 0.6 when performing a large import. The mapping being returned should be (for example
SNMP
Simple Network Management Protocol
comes back withSNMP
something completely wrong
)Examples
and
Not sure if my data is incorrect (I'll check), but wanted to report this in case it is actually an issue. Reverting back to 0.5 the issue is not present
and
So, I think there is a bug somewhere
-
add csvtojson support 路 Issue #7 路 NodeBB/nodebb-plugin-glossary
use https://www.npmjs.com/package/csvtojson instead of custom code
GitHub (github.com)
-
I updated the plugin to use https://www.npmjs.com/package/csvtojson so it is using the csv spec from https://www.loc.gov/preservation/digital/formats/fdd/fdd000323.shtml
-
@baris This doesn't seem to work for me at all using the latest version sadly. It doesn't matter which format I use, the import always seems to work, but exhibits the same issues as I highlighted earlier. Version
0.5
does not have these issues from what I can tell.