A webapp for the syntax-prosody analyst working in Optimality Theory, with automated Gen, Con and Eval. Download build files from syntax-prosody-ot/build
Prioritize words if both arguments are provided (for the sake of consistency with GEN)
If stree has leaves and words was also provided and the length doesn't match, then give a warning. Use displayWarning() which can handle being called either in or out of the interface.
Check that it's still working on the interface after this.
Feel free to refactor this function to pull out the permutation generator from the tree generating part.
Just needed to split the "words" string on " ". Before this, every char in the string was used for permutation.