% Spanish Module for Part 2 of Lab 7

:- module(esp,[]).

%definition of question

  qn(question(I,V,NP)) --> ie(I), vb(V, [_]), ne(NP, [_]).
  qn(question(I,V,NP)) --> ie(I), vb_to_be(V, [Num]), ne(NP, [Num]).

%noun phrase breakdown (Add in noun phrase breakdown here)

%object breakdown (Add in object breakdown here)
%                 (Add classification gender)

%interrogatives

  ie(irr(who)) --> [quien].

%verbs

  vb(verb(studies), [singular]) --> [estudia].
  vb(verb(study), [plural]) --> [estudian].
  vb(verb(teaches), [singular]) --> [ensena].
  vb(verb(teach), [plural]) --> [ensenan].
  vb_to_be(verb(is), [singular]) --> [es].
  vb_to_be(verb(are), [plural]) --> [son].

%determiners  
% Add determiner "the" for all cases of number and gender.

%preposition

  pn(prep(of)) --> [de].

%nouns

  %proper nouns (Add in same names of people)

  %countable nouns (Add classification gender)
  nn(noun(sister), [singular, countable]) --> [hermana].
  nn(noun(sisters), [plural, countable]) --> [hermanas].
  nn(noun(brother), [singular, countable]) --> [hermano].
  nn(noun(brothers), [plural, countable]) --> [hermanos].

  %uncountable nouns (Add classification gender)
  nn(noun(english), [singular, uncountable]) --> [ingles].
  nn(noun(mathematics), [singular, uncountable]) --> [matematica].
  nn(noun(spanish), [singular, uncountable]) --> [espanol].