I then added some simple machine learning to filter search results for the most relevant threads which improved it quite a bit.
I then added some simple machine learning to filter search results for the most relevant threads which improved it quite a bit.
http://www.amazon.com/Simple-Heuristics-That-Make-Smart/dp/0...
>!ask what is the largest prime number?
For primes of the form 2^n - 1 (known as [Mersenne primes](http://en.wikipedia.org/wiki/Mersenne_prime)), a very fast primality test known as the [Lucas-Lehmer test](http://en.wikipedia.org/wiki/Lucas%E2%80%93Lehmer_primality_...) is available. The ten largest currently known prime numbers are all Mersenne primes.
>!ask what's the airspeed velocity of an unladen swallow?
African or European?
> !ask tell me a joke
I was eating chicken tonight last night, and got a little bone in one of the fillets. So I said "Fillet? More like fill-it with bones! Haha!" Then I looked around at the empty table and quietly sobbed into my bowl.
As I said, it only works for questions that are likely to have been posted on reddit before. Not a general search engine.