nhunzaker/speakeasy

.classify() never recognizes 'you' especially if leading the sentence

Inventsable opened this issue · 0 comments

I'd expect it to return 'listener' and you see this behavior often when text contains "your", but curiously not pronouns like "you", which never is identified as the subject if the first word in a sentence:

const speak = require("speakeasy-nlp");
// below using speak.classify(String)

'What is your name?' 
// owner: 'listener', subject: 'name'   <--- Correct

'What name do you have?'
// owner: undefined, subject: 'you'

'You have a name?'
// owner: undefined, subject: 'name'

'You look lovely'
// owner: 'lovely', subject: 'look lovely' 

'I look lovely'
// owner: 'speaker', subject: 'look lovely' <--- Correct