when we have context that was determined based on collected data & reasoning , we need a command to make sure that context is valid - a context enforcer.
Eg. user wants info about "bin". But "bin" can be anything, but especially a Unix directory located under / or /usr, etc. So, in the "system diretory" context, it should check that "bin" is a dir, not a file (maybe using file and its absolute path -> that parent is / or /usr, etc.)
More than one enforcer could be applied (and stacked) for a word. One enforcer should be: detect_filetype(), detect_parent(), etc.
when we have context that was determined based on collected data & reasoning , we need a command to make sure that context is valid - a context enforcer.
Eg. user wants info about "bin". But "bin" can be anything, but especially a Unix directory located under / or /usr, etc. So, in the "system diretory" context, it should check that "bin" is a dir, not a file (maybe using
file
and its absolute path -> that parent is / or /usr, etc.) More than one enforcer could be applied (and stacked) for a word. One enforcer should be: detect_filetype(), detect_parent(), etc.