src/English/trainers/en_HeadFinder.cpp
// priority_scan searches go through the tags in "set" one by one to see if
//		they match the elements in right[]
// scan searches go through the elements of right[] one by one to see if
//		they match any of the tags in "set"
//
// i.e. in priority_scan, the order of the tags in the set matters,
//   and in scan it doesn't
//
// left_to_right / right_to_left obviously refers to the order in which it
//   searches through the elements of right[], a.k.a. the children 
//   of the node whose head we're trying to find

priority_scan searches go through the tags in "set" one by one to see if
they match the elements in right[]
scan searches go through the elements of right[] one by one to see if
they match any of the tags in "set"



left_to_right / right_to_left obviously refers to the order in which it
searches through the elements of right[], a.k.a. the children
of the node whose head we're trying to find
priority_scan searches go through the tags in " set " one by one to see if they match the elements in right [] scan searches go through the elements of right [] one by one to see if they match any of the tags in " set " left_to_right / right_to_left obviously refers to the order in which it searches through the elements of right [] a . k . a . the children of the node whose head we ' re trying to find
int EnglishHeadFinder::findHeadADJP()
{
	Symbol set[22] = {EnglishSTags::NNS, EnglishSTags::QP, EnglishSTags::NN, EnglishSTags::DOLLAR, EnglishSTags::ADVP, 
		    EnglishSTags::JJ, EnglishSTags::VBN, EnglishSTags::VBG, EnglishSTags::ADJP, EnglishSTags::JJR, 
			EnglishSTags::NP, EnglishSTags::NPA, EnglishSTags::DATE, EnglishSTags::NPP, EnglishSTags::NPPOS, 
			EnglishSTags::JJS, EnglishSTags::DT, EnglishSTags::FW, EnglishSTags::RBR, EnglishSTags::RBS, 
			EnglishSTags::SBAR, EnglishSTags::RB};
	return priority_scan_from_left_to_right(set, 22);
}
int EnglishHeadFinder :: findHeadADJP ( ) { Symbol set [ 22 ] = { EnglishSTags :: NNS , EnglishSTags :: QP , EnglishSTags :: NN , EnglishSTags :: DOLLAR , EnglishSTags :: ADVP , EnglishSTags :: JJ , EnglishSTags :: VBN , EnglishSTags :: VBG , EnglishSTags :: ADJP , EnglishSTags :: JJR , EnglishSTags :: NP , EnglishSTags :: NPA , EnglishSTags :: DATE , EnglishSTags :: NPP , EnglishSTags :: NPPOS , EnglishSTags :: JJS , EnglishSTags :: DT , EnglishSTags :: FW , EnglishSTags :: RBR , EnglishSTags :: RBS , EnglishSTags :: SBAR , EnglishSTags :: RB } ; return priority_scan_from_left_to_right ( set , 22 ) ; }
priority_scan searches go through the tags in "set" one by one to see if
they match the elements in right[]
scan searches go through the elements of right[] one by one to see if
they match any of the tags in "set"
priority_scan searches go through the tags in " set " one by one to see if they match the elements in right [] scan searches go through the elements of right [] one by one to see if they match any of the tags in " set "