Skip to content

Commit

Permalink
one test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Jan 16, 2024
1 parent c67da42 commit a45865e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scratch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import nlp from './src/three.js'
// nlp.plugin(plg)
// nlp.verbose('tagger')

let doc = nlp(`The project's behind schedule`).debug()
let doc = nlp(`The meeting's scheduled for 3 PM`).debug()
// let doc = nlp(`The sun's setting`).debug()
console.log(doc.docs[0])
// nlp(`He'd never let us`).debug()
Expand Down
4 changes: 4 additions & 0 deletions src/2-two/contraction-two/compute/apostrophe-s.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const isOrHas = (terms, i) => {
}
// The meeting's scheduled vs The plane's landed
if (t.tags.has('PastTense')) {
// meeting's scheduled for
if (terms[o + 1] && terms[o + 1].normal === 'for') {
return 'is'
}
return 'has'
}
}
Expand Down

0 comments on commit a45865e

Please sign in to comment.