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, clean, callback)
load(dbName, files, clean, callback)
The boolean parameter
clean in the
load methods wipes the existing database if it exists, before creating a new one.
Note: The methods pre-v1.0.0
expand are no longer available. The function signatures
load have changed, and now are required to be called asynchronously (i.e. has a callback parameter).
The return value of
load is an object:
conceptToList(term, [depth,] callback)
createUserDBWithData(dbName, files, callback)
Note: The method pre-v1.0.0
loadFile is now named
loadFiles. Its behavior is exactly the same.