Hacker News new | past | comments | ask | show | jobs | submit login

> "2nd fruit in bear apple goat orange"[1], "7th digit in abc123def456ghi789"[2]

It barfs on these ones, but not like you predict (it's actually worse). "The 2nd colour in purple, belly, yellow, arm, white and blue"[3] gives back yellow, though, so it's not that stupid.

[1] http://www.wolframalpha.com/input/?i=The+2nd+fruit+in+bear+a...

[2] http://www.wolframalpha.com/input/?i=7th+digit+in+abc123def4...

[3] http://www.wolframalpha.com/input/?i=The+2nd+colour+in+purpl...




Oh, not that stupid, huh?

Query: The 2nd colour in purple, belly, yellow, arm, white and blue

Answer: yellow

Query: The 3rd colour in purple, belly, yellow, arm, white and blue

Answer: yellow

Query: The 7th colour in purple, belly, yellow, arm, white and blue

Answer: yellow

Query: The bluest colour in purple, belly, yellow, arm, white and blue

Answer: yellow

:-)


If you change yellow to silver, it gives you "colour silver," but if you look at the assumptions, it assumes silver is an element. Clearly it's not really getting the meaning of the sentence, and the fact that it's picking "yellow" is mostly coincidental, I think, as is also illustrated by your examples.

http://www.wolframalpha.com/input/?i=The+2nd+colour+in+blue,...


I wonder what its favorite colour is ;-)



That's according to Python. Ask about the favorite color of Wolfram Alpha:

http://www.wolframalpha.com/input/?i=what+is+your+favorite+c...


Haha.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: