Version 5.0.0 - December 2023
Natural Language Generation (NLG) is a field of artificial intelligence that focuses on the development of systems that produce text for different applications, for example the textual description of massive datasets or the automation of routine text creation.
The web is constantly growing and its content, getting progressively more dynamic, is well-suited to automation by a realizer. However existing realizers are not designed with the web in mind and their operation requires much knowledge, complicating their use.
jsRealB is a text realizer designed specifically for the web, easy to learn and to use. This realizer allows its user to build a variety of French and English expressions and sentences, to add HTML tags to them and to easily integrate them into web pages.
The documentation can be accessed here. You can switch language in the upper right corner of the page.
// for CommonJS script
// let jsRealB=require("jsrealb")
// for an ES module use one of the two following
import jsRealB from "jsrealb"
// let {default:jsRealB} = await import("jsrealb")
// make exports available in the global scope
Object.assign(globalThis,jsRealB)
// realize the English sentence : "The cats will chase the mouse."
loadEn(true)
console.log(""+S(NP(D("the"),N("cat")),VP(V("chase"),NP(D("the"),N("mouse")))).n("p").t("f"))