It seems that you have quite a nice hobby ;)
This seems to be impossible to detect automatically. The only way is to read whole text before using it.
BTW What is Ackerman function?
https://en.wikipedia.org/wiki/Ackermann_function