function tWord()  {
   this.word = "";

   this.initByWord = function(word) {
      this.word = word;
   }

   this.initByXML = function(node) {
      this.word = node.text();
      this._start = node.attr("_start");
      this._finish = node.attr("_finish");
      this.lumber = node.attr("lumber");
   }

   this.simplify = function() {
      return this.word.replace(/[^A-Za-z0-9\-\-\’\‘\']/g, "").replace(/[\’\‘]/g, "'").replace(/^[\']+/g, "").replace(/[\']+$/g, "").replace(/[\-\-]/g, "\u2011");
   }

   //hyphen is the difference
   this.simplify4dict = function() {
      return this.word.replace(/[^A-Za-z0-9\’\‘\']/g, "").replace(/[\’\‘]/g, "'").replace(/^[\']+/g, "").replace(/[\']+$/g, "").replace(/[\-\-]/g, "\u2011");
   }

   this.getHTML = function()  {
      var w = this.word;
      if (/^[\n\r ]*\[[^\[\]]*\][\n\r ]*$/.test(w))  {
         w = w.replace(/\[/, "<span class='comment'>").replace(/\]$/, "</span>");
      }
      w = w.replace(/\n/g, "<br />");
      return w;
   }

   this.getSilentWord = function() {
      return this.word.replace(/^\[([^\[\]]+)\]$/g, "$1");
   }

   this.isSilent = function() {
      return /^[\n\r ]*\[[^\[\]]*\][\n\r ]*$/.test(this.word);
   }
}