syntax-prosody-ot / main

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
https://spot.sites.ucsc.edu/
GNU General Public License v2.0
12 stars 2 forks source link

Add warning when both manual and automatic input have content #510

Closed jbellik closed 3 years ago

jbellik commented 3 years ago

Current interface behavior: If there is anything in the input for "Gen input parameters / Manual / String of terminals", then use that as the input to GEN, without regard to which tab is being displayed when "Get results" is clicked. The result is that if a user puts, for example, 'a b' in the "String of terminals" field on the Manual tab, then switches to the Automatic tab without erasing that and creates a bunch of trees automatically, and then clicks "Get results", all output trees will be based on 'a b', disregarding the input trees created in the Automatic tab. This is very opaque.

This isn't a problem if syntactic trees are manually created (using the tree builder + "Add trees to analysis"), because this clears the "String of terminals" field.

Desired behavior:

jbellik commented 3 years ago

We will need some logic around the setting and/or use of pString in interface1.js. In the master branch at the moment, pString gets set on line 423.