function(str, lex) {
    if (lex) {
      w2.plugin({
        words: lex
      });
    }
    let doc = buildText(str, w2);
    doc.tagger();
    return doc;
  }
function(str, lex) {
    if (lex) {
      w2.plugin({
        words: lex
      });
    }
    let doc = buildText(str, w2);
    doc.tagger();
    return doc;
  }
function ( str , lex ) { if ( lex ) { w2 . plugin ( { words : lex } ) ; } let doc = buildText ( str , w2 ) ; doc . tagger ( ) ; return doc ; }
this is weird, but it's okay
this is weird but it s okay
Build a text document