In English sentences, the noun-verb pair often appears sequentially in order of n,v.
Develop an automated algorithm for grouping words into noun and verb groups.
sequence the following sentences:
man sit
woman sit
person sit
dog sit
//
//sit object is:
sit{
man =r_br
woman
person
dog
}
//
// form G1 from branches in sit
G1 {
br= is_p man "is_p" = a programmatic object
woman
person
dog
}
//
// insert G1 lemma in all objects contained in G1
man{ woman{
br= is G1 br= is G1
... ...
} }
//
// now read the following sentences
man run
woman cook
dog bark
//
// substitution yields: Substitute() uses P_is object
G1 run
G1 cook
G1 bark
//
// G1 object becomes
G1 {
br= P_is man
woman
person
dog
run
cook
bark
}
//
// Make G2 from branches in G1
G2 {
br= P_is run
cook
bark
3:G1 =r_br <------ get this after rereading sentences
}
//
// link objects in G2 back to G2
run{ cook{
br= G2 br= G2
... ...
} }
//
// read more sentences
boy run
girl cook
//
//substitute
boy G2
girl G2
//
// G2 becomes
G2 {
br= is:3 run
cook
bark
3:G1 =r_br
boy
girl
}
//
// make new object G3 from r_branches in G2
G3 {
br= is:3 G1
boy
girl
}
//
// this process accumulates the nouns in G3
// read more sentences
man sit
boy run
//
// substitute
G3 sit
G3 run
G3 G2
//
// the G3 object becomes
G3 {
br= is G1
boy
girl
sit
run
G2
}
//
// make new object G4 from branches in G3
G4 {
br= is:3 sit
run
G2
}
//
// this iterative process accumulates the verbs in G4