News for hackers. Stuff that matters.
Re:How Alexa knows “peanut butter” is one shopping-list item... by cphoover on Tuesday December 18, 2018 @09:55AM (#18706761)
Because who orders a single peanut.
Re:How Alexa knows “peanut butter” is one shopping-list item... by pboutros on Tuesday December 18, 2018 @09:59AM (#18706794)
immediately think of Fezzik (sp.?) in The Princess Bride

https://i.kym-cdn.com/entries/icons/original/000/022/158/Pea...

Re:How Alexa knows “peanut butter” is one shopping-list item... by entity345 on Tuesday December 18, 2018 @11:10AM (#18707618)
Well this is not the key indicator. The key indicator is the absence of pause between the words, that's how we differentiate between "peanut butter" and "peanut, butter".
Re:How Alexa knows “peanut butter” is one shopping-list item... by IshKebab on Tuesday December 18, 2018 @11:16AM (#18707699)
Far more important than the lack of a pause between then words is the a priori fact that "peanut butter" is a common single item and "peanut, butter" is an uncommon list of items. It is that fact that means that you require a pause between the words to indicate "peanut, butter".

If you ordered "butter, peanuts" for example, it would probably get that it was two items even without the pause between words.

It's all about the prior probabilities.

Re:How Alexa knows “peanut butter” is one shopping-list item... by adrianmonk on Tuesday December 18, 2018 @12:25PM (#18708433)
I don't see why they can't both be important signals. I would hazard a guess that a combined approach is what humans do.

I'm not a linguist or anything, but it seems like in practice people may pronounce "peanut butter" a little differently when they say the two words together. Something like "peanubutter". Or maybe they convert the "t" in "peanut" into a glottal stop.

Anyway, if the "t" is absent when you're talking about peanut butter but present when you're talking about two separate items, I don't see why you shouldn't feel free to use that signal. But I also don't see why you shouldn't use probabilities as well.

Re:How Alexa knows “peanut butter” is one shopping-list item... by hathawsh on Tuesday December 18, 2018 @02:57PM (#18709959)
I agree. When parsing speech, we humans listen for many cues all at once. Spoken language even has intentional redundancy so we can identify and disregard inconsistent cues. For example, a child or foreign speaker might replace "peanut" with "peanuts" and most people would still have no problem understanding "peanuts butter" as long as the rest of the cues are consistent.
Re:How Alexa knows “peanut butter” is one shopping-list item... by IshKebab on Thursday December 20, 2018 @10:24AM (#18725638)
They are both signals. But the prior probability is more important in this case because it is so much more common to say "peanut butter" than "peanut, butter". In other cases the pause might be a more important signal.
Re:How Alexa knows “peanut butter” is one shopping-list item... by entity345 on Tuesday December 18, 2018 @11:23AM (#18707769)
I would disagree here. Especially in the context of a shopping list.

If I were to say 'peanut' <pause> 'butter' my interlocutor would probably interrupt me to ask for confirmation because that would be enough to create doubt.

'Peanut' and 'butter' are two unrelated words and it is the absence of pause that creates a pseudo single word.

Pauses are extremely important in spoken language and should be exploited.

Re:How Alexa knows “peanut butter” is one shopping-list item... by ghaff on Tuesday December 18, 2018 @12:23PM (#18708407)
>If I were to say 'peanut' <pause> 'butter' my interlocutor would probably interrupt me

I'm on the parent's side on this. "Peanut butter" is such a common item that if someone were to pause in between the words I would assume they just got distracted for some reason. In the context of a shopping list, "peanut" singular just doesn't make sense.

A better example would be something like "yogurt ice cream" which is technically incorrect but it's still something people might say. In that case, I'd expect a shorter pause than in the case of yogurt, ice cream. However, if you were dictating a list to me I'd probably ask for confirmation in either case because there's enough ambiguity.

Re:How Alexa knows “peanut butter” is one shopping-list item... by mamon on Tuesday December 18, 2018 @07:47PM (#18712027)
Deliberate pause sounds a bit different than a pause caused by distraction.
Re:How Alexa knows “peanut butter” is one shopping-list item... by jonathankoren on Tuesday December 18, 2018 @11:36AM (#18707906)
If we’re assuming human level AI, maybe and not even then. Nonnative English speakers from languages without a singular/plural distinction often make use singulars where a plural is called for.

Domain knowledge around the intent (making a shopping list) and around language conventions helps a lot, not only for NLU, but also for NLS.

But even without a huge NLU dictionary, a simple MC or CRF segmentation model would work. As said earlier, almost no one says., “Add peanut to the shopping list.” They say, “Add peanuts”, of if they’re very atypical, “Add a peanut”. A bare “peanut” is simply unlikely.

Re:How Alexa knows “peanut butter” is one shopping-list item... by taeric on Tuesday December 18, 2018 @11:39AM (#18707922)
I think the catch is that human detection of pauses is far more fraught with difficulty than you'd imagine. Overly emphasized pauses are easy to discern, but quite a lot of speech pulls words far closer together than you would think. And this is just in english. Not all languages work with emphasis syllables and such.
Re:How Alexa knows “peanut butter” is one shopping-list item... by _emacsomancer_ on Tuesday December 18, 2018 @12:14PM (#18708292)
Exactly, and the difference of the length of pauses between 'syntactic' words (peanut, butter) and between compounded words (peanut-butter) will vary based on speaker and moreover, things like focus/emphasis can cause lengthening of pauses even for the latter case. ("No, Alexa, I'm not shopping for Whistler's Mother; I need to buy PEANUT BUTTER.")
Re:How Alexa knows “peanut butter” is one shopping-list item... by chrisfosterelli on Tuesday December 18, 2018 @11:41AM (#18707941)
A better example is "coffee cream" (Google fails on this one)
Re:How Alexa knows “peanut butter” is one shopping-list item... by pbhjpbhj on Tuesday December 18, 2018 @12:27PM (#18708457)
Well, what is it?

I imagine lists with post-specifiers are near impossible to parse too:

    Coffee, instant
    Custard, powdered
    Sugar
Bit contrived, but still.
Re:How Alexa knows “peanut butter” is one shopping-list item... by chrisfosterelli on Tuesday December 18, 2018 @03:15PM (#18710135)
I see your point for longer lists, but most humans would correctly interpret "Hey, add coffee cream to my shopping list" as one item rather than two.
Re:How Alexa knows “peanut butter” is one shopping-list item... by orf on Tuesday December 18, 2018 @03:46PM (#18710375)
Assuming most cultures have "coffee cream" in their common vernacular seems risky. I've never heard of it.
Re:How Alexa knows “peanut butter” is one shopping-list item... by pbhjpbhj on Tuesday December 18, 2018 @04:17PM (#18710665)
This. I'd assume it's like "creamer" which is a fake milk substitute from USA I think? But, it could be coffee flavoured cream; or "coffee creams" which are biscuits in the UK, or maybe some sort of confection?

Yeah, I should just look it up ...

Re:How Alexa knows “peanut butter” is one shopping-list item... by chrisfosterelli on Tuesday December 18, 2018 @05:06PM (#18711032)
"coffee cream" AKA "half and half" in much of the US or "half cream" in the UK
Re:How Alexa knows “peanut butter” is one shopping-list item... by pbhjpbhj on Tuesday December 18, 2018 @05:55PM (#18711381)
I (native UK) have never heard of "half cream", is that like "single cream"?
Re:How Alexa knows “peanut butter” is one shopping-list item... by chc on Tuesday December 18, 2018 @06:07PM (#18711453)
Half cream is less than single cream. AFAIK single cream has half the milkfat of whipping cream, while half-and-half/half cream has about 1/3.
Re:How Alexa knows “peanut butter” is one shopping-list item... by 01100011 on Tuesday December 18, 2018 @01:06PM (#18708868)
That seems easy. Keep a pointer to the last item, and if you encounter a 'modifier', modify it.
Re:How Alexa knows “peanut butter” is one shopping-list item... by Vendan on Tuesday December 18, 2018 @03:01PM (#18710007)
yeah, but which way? `Add custard powdered sugar to my shopping list` is is powdered custard, or powdered sugar?
Re:How Alexa knows “peanut butter” is one shopping-list item... by ascar on Tuesday December 18, 2018 @11:07AM (#18707577)
Re:How Alexa knows “peanut butter” is one shopping-list item... by defnotarobot on Tuesday December 18, 2018 @09:59AM (#18706792)
I had exact same realization.