This library reads in table and topic data into tuples for use in SuperScript. It uses the LevelUp interface alongside MongoDown as a backing store.
sfacts supports ChatScript tables and topics.
Note: Before v1.0.0, sfacts used to write to the filesystem using LevelDB. It now writes to MongoDB, to facilitate scaling of SuperScript.
create(dbName, callback)
load(files, dbName, callback)
Note: The methods pre-v1.0.0 db
and expand
are no longer available.
The return value of each of the above methods is an object:
conceptToList(term, [depth,] callback)
createUserDB(dbName)
createUserDBWithData(dbName, files, callback)
db
findParentConcepts(term, callback)
level
loadFiles(files, callback)
Note: The method pre-v1.0.0 loadFile
is now named loadFiles
. Its behavior is exactly the same.