getMainCats: gets list of isMain = true documents, without subCats & parentCats
getCatsOfText(txt): returns a list of all cats (regardless of isMain value) that have one or more keywords in the text. For an isMain category, it checks its keywords in addition to its subCats keywords.
Notes
For simplicity, categories are created manually for the time being, until having a UI to manage that.
APIs
getMainCats
: gets list ofisMain = true
documents, withoutsubCats
&parentCats
getCatsOfText(txt)
: returns a list of all cats (regardless ofisMain
value) that have one or more keywords in the text. For anisMain
category, it checks its keywords in addition to itssubCats
keywords.Notes
References