JavaScript
const data = [
{word: "The", weight: 0.028594122319301037, context: "sample context"},
{word: "sun", weight: 0.028594122319301037, context: "sample context"},
{word: "did", weight: 0.014297061159650518, context: "sample context"},
{word: "not", weight: 0.028594122319301037, context: "sample context"},
{word: "shine", weight: 0.04765687053216839, context: "sample context"},
{word: "it", weight: 0.019062748212867357, context: "sample context"},
{word: "was", weight: 0.028594122319301037, context: "sample context"},
{word: "too", weight: 0.009531374106433678, context: "sample context"},
{word: "wet", weight: 0.009531374106433678, context: "sample context"},
{word: "to", weight: 0.004765687053216839, context: "sample context"},
{word: "play", weight: 0.019062748212867357, context: "sample context"},
{word: "so", weight: 0.009531374106433678, context: "sample context"},
{word: "we", weight: 0.0031771247021445594, context: "sample context"},
{word: "sat", weight: 0.007148530579825259, context: "sample context"},
{word: "in", weight: 0.009531374106433678, context: "sample context"},
{word: "the", weight: 0.014297061159650518, context: "sample context"},
{word: "house", weight: 0.023828435266084195, context: "sample context"},
{word: "all", weight: 0.014297061159650518, context: "sample context"},
{word: "that", weight: 0.03812549642573471, context: "sample context"},
{word: "cold", weight: 0.019062748212867357, context: "sample context"},
{word: "col", weight: 0.028594122319301037, context: "sample context"},
{word: "day", weight: 0.028594122319301037, context: "sample context"},
{word: "I", weight: 0.0031771247021445594, context: "sample context"},
{word: "there", weight: 0.023828435266084195, context: "sample context"},
{word: "with", weight: 0.03812549642573471, context: "sample context"},
{word: "sally", weight: 0.04765687053216839, context: "sample context"},
{word: "nothing", weight: 0.06671961874503575,...