What about running the java application in the background on the server, i.e. it is started manually by me, or by the user when she starts a session, and use php to send data to the java application, which returns a simple string that is parsed by php to the page. is that out of the question? because the application, all it takes is a string for input, and then questions the user about each word in the string, or skips the words the user has chosen to skip.
right now the program loads four arrays filled with, respectively, transitive verbs, intransitive verbs, nouns, and adjectives. that’s it’s overhead, what it loads each time it starts. i just need some advice for going about doing this in php.