A new web application may require adding Artificial Intelligence (AI) in the future, e.g. using ProLog. I know it can be done from a Java environment, but I am wondering about the opportunities with modern web languages like Ruby or Python. The latter is considered to be "more scientific" (at least used in that environment), but using Google there seems to be a preliminary ProLog implementation for both. 
Any suggestions on modern (open source) web languages (like Python or Ruby) in combination with AI?
You could also use Scala (which is a bit functional and runs on the JVW) and the existing Lift framework for web-stuff.
Python or Ruby for webbased Artificial Intelligence?