dist/sentence_mgr.js
function relationship(mood) {
  var verb = void 0,
      talk = void 0;

  if (mood === "good") {
    verb = "strengthened";
    talk = "discussion";
  } else {
    verb = "strained";
    talk = "argument";
  }

  var familiar_people = _word_library2.default.getWords("familiar_people");
  var conversation_topics = _word_library2.default.getWords("conversation_topics");

  var person = nu.chooseFrom(familiar_people);
  var topic = nu.chooseFrom(conversation_topics);

  var sentence = 'Your relationship with ' + person + ' may be ' + verb + ' ';
  sentence += 'as the result of ' + nu.an(talk) + ' about ' + topic;

  return nu.sentenceCase(sentence);
}
function relationship(mood) {
  var verb = void 0,
      talk = void 0;

  if (mood === "good") {
    verb = "strengthened";
    talk = "discussion";
  } else {
    verb = "strained";
    talk = "argument";
  }

  var familiar_people = _word_library2.default.getWords("familiar_people");
  var conversation_topics = _word_library2.default.getWords("conversation_topics");

  var person = nu.chooseFrom(familiar_people);
  var topic = nu.chooseFrom(conversation_topics);

  var sentence = 'Your relationship with ' + person + ' may be ' + verb + ' ';
  sentence += 'as the result of ' + nu.an(talk) + ' about ' + topic;

  return nu.sentenceCase(sentence);
}
function relationship ( mood ) { var verb = void 0 , talk = void 0 ; if ( mood === "good" ) { verb = "strengthened" ; talk = "discussion" ; } else { verb = "strained" ; talk = "argument" ; } var familiar_people = _word_library2 . default . getWords ( "familiar_people" ) ; var conversation_topics = _word_library2 . default . getWords ( "conversation_topics" ) ; var person = nu . chooseFrom ( familiar_people ) ; var topic = nu . chooseFrom ( conversation_topics ) ; var sentence = 'Your relationship with ' + person + ' may be ' + verb + ' ' ; sentence += 'as the result of ' + nu . an ( talk ) + ' about ' + topic ; return nu . sentenceCase ( sentence ) ; }
Generate a mood-based sentence about a relationship
@param mood
@returns {*}
Generate a mood - based sentence about a relationship