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
- 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
- TODO: More accommodating parsing of sentences
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.