garyfeng / etherpad-lite

Etherpad: Really real-time collaborative document editing
http://etherpad.org
Apache License 2.0
0 stars 0 forks source link

add thesaurus #1

Open garyfeng opened 8 years ago

garyfeng commented 8 years ago

have looked at several possibilities. Best candidate:

https://github.com/daizoru/node-thesaurus, which uses MyThes, the open-office thesaurus. It provides no GUI, but a simple function to look up a word; see below. We will need to design a simple GUI to show and select the word.

var thesaurus = require("thesaurus");

// basically returns a list of similar words
console.log(thesaurus.find("structuralism"));
[ 'structural linguistics',
  'linguistics',
  'structural anthropology',
  'theory',
  'structural sociology' ]
garyfeng commented 8 years ago

The convention in MS Word is the following:

This would be not too hard to implement on the basis of node-thesaurus