User:Twarner2/Final project

From LING073
Jump to: navigation, search

What I Did

For my final project I chose to work on the UD annotatrix (linked below) and improve a few features. I chose the following 5 tasks to work on in trying to improve some of the functionality:

  • Merging of Github repositories
    • Copying over of new files from the UD repository
  • Cleanup of the main HTML file
    • Making the layout of the file nicer
    • Extradition of the script into a new file body.js
  • Working with connection over HTTPS
    • Changed absolute URL's to protocol-agnostic ones by appending the domain and pathname of the queried page to whatever protocol is in the current URL
  • Loading text from the URL
    • Sentences can now be loaded as the query part of the URL, with words separated by +'s
    • NB: For some reason, the dependency tree doesn't generate immediately; you need to press a key to trigger the update called by the release of a key
      • Happens even though I call keyUpFunc at the end of checking for queries in the URL
  • More accommodating parsing of sentences
    • Now, in CG format, if you leave out some information, it will still draw the dependencies, but with some labels stubbed out as UND.


The merging and cleanup tasks are pretty trivial to evaluate. The cleanup of the HTML file makes a little more sense now than it did to have a script written inside a <script>...</script> section, but nothing game-changing.
The HTTPS functionality is an extremely helpful functionality to have, because since new Github pages are forced HTTPS connection (as opposed to pre-2015, which are optional), any relatively new Github user who forks the repository would have been previously unable to test any changes. Even more importantly (and in conjunction with the URL reading functionality), the link to an example dependency drawing can be universally and reliably sent.
The loading of sentence(s) from the URL is a great new development for this project, too, because it allows dependency drawings to be easily shared, with the simple click of a link. Previously, one would have had to send the link to the page, and then tell the recipient the text that they would need to copy into the textarea. This development is probably especially helpful for teachers of linguistics, who might desire to send a link containing an example sentence and its dependencies to a group of people.
The parsing of sparse CG formatting is perhaps the most gratifying of these points, for the user, because it makes nodes and dependencies instantly, instead of having to complete the line of CG format before anything generates. It is also working very seamlessly with the user in that as soon as the user adds more information (that wasn't previously there), the dependency changes to represent it.


Flagship page
My page