Difference between revisions of "User:Mparker3/Final project"

From LING073
Jump to: navigation, search
(Created page with "== Apertium Paradigm Generator == Given a verb (Spanish for now, but extensible for any language), queries the Apertium API to fetch conjugations in different paradigms for s...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
== Apertium Paradigm Generator ==
+
= Apertium Paradigm Generator =
  
 
Given a verb (Spanish for now, but extensible for any language), queries the Apertium API to fetch conjugations in different paradigms for said verb.
 
Given a verb (Spanish for now, but extensible for any language), queries the Apertium API to fetch conjugations in different paradigms for said verb.
Line 11: Line 11:
 
Given the verb "hablar", the SPA successfully generates the correct conjugations for each person of the form specified in the file "Spanish.js".
 
Given the verb "hablar", the SPA successfully generates the correct conjugations for each person of the form specified in the file "Spanish.js".
  
−
[[File:HablarParadigms.jpeg]]
+
[[Media:HablarParadigms.jpeg]]
 +
 
 +
To successfully make this project open-source extensible, I have separated out all language-specific variables into a file <code>Spanish.js</code>.
 +
Modifying this project to function in another language begins with modifying <code>Spanish.js</code> so that the proper verb forms are generated, and then using regular expressions, or more realistically, IDE refactoring tools, to replace all instances of "SPANISH" in <code>App.js</code>.
 +
 
 +
== Issues ==
 +
 
 +
Badly in need of some CSS.
 +
 
 +
There is a nasty race condition related to asynchronous API calls that I'm still in the process of solving that occasionally leads to flipping of which conjugated verbs are under which header. The solution for this will probably be to move the API calls into the <code>Paradigm.js</code> component.
 +
 
 +
== Poster ==
 +
 
 +
[https://wikis.swarthmore.edu/ling073/images/4/42/Ling073PosterFinal.pdf Poster presented for final]
 +
 
 +
 
 +
[[Category:Sp18_FinalProjects]]

Latest revision as of 17:57, 2 June 2018

Apertium Paradigm Generator

Given a verb (Spanish for now, but extensible for any language), queries the Apertium API to fetch conjugations in different paradigms for said verb.

Product running on GitHub Pages

Repository

Evaluation

Given the verb "hablar", the SPA successfully generates the correct conjugations for each person of the form specified in the file "Spanish.js".

Media:HablarParadigms.jpeg

To successfully make this project open-source extensible, I have separated out all language-specific variables into a file Spanish.js. Modifying this project to function in another language begins with modifying Spanish.js so that the proper verb forms are generated, and then using regular expressions, or more realistically, IDE refactoring tools, to replace all instances of "SPANISH" in App.js.

Issues

Badly in need of some CSS.

There is a nasty race condition related to asynchronous API calls that I'm still in the process of solving that occasionally leads to flipping of which conjugated verbs are under which header. The solution for this will probably be to move the API calls into the Paradigm.js component.

Poster

Poster presented for final