#hagen
FSA = /users1/vannoord/bin/fsa
# tcw2
#FSA = /home/vannoord/Linux/bin/fsa

######### TEST 1
# make a list of words from monosyll not accepted by syllable.fsa and 
# put the results in not_accepted

not_accepted : accept_results
	grep -e '^yes$$' -e '^no$$' accept_results | paste monosyll - | grep 'no$$' | cut -f1 > not_accepted
	@wc -l not_accepted |awk '{print $$1 " words not accepted, " ($$1/5890 * 100) "%"}'

# run the list of words monosyll thru recognizer syllable.fsa and put results
# in accept_results

accept_results: syllable.fsa
	$(FSA) -aa  syllable.fsa < monosyll 2> accept_results

# compile regular expression syllable from syllable.pl into syllable.fsa

syllable.fsa : syllable.pl
	$(FSA) -aux syllable.pl -r syllable > syllable.fsa 

clean :
	rm -f accept_results not_accepted 
