var apesstudy=new study("apes"); apesstudy.beginobservation(()=>{ var sentiment="positive"; foreach(var ape in apesstudy.specimens) { if (ape.hasunspokencommunications) { sentiment.analyze(ape.communications); } } apesstudy.directives.add("ignore preadmission biases"); apesstudy.directives.add("start over again if necessary to capture unspoken interactions"); return sentiment; });