question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

toInfinitive incorrectly returns "turne" for the verb "turned"

See original GitHub issue

Steps to reproduce: nlp("Mary turned the key.").verbs(0).toInfinitive().out()

Output: “turne” instead of “turn”

In the meantime, is it possible for me to add a custom override for the verb “to turn” to fix this specific edgecase?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
spencermountaincommented, May 26, 2022

as of v14:

console.log(nlp("Mary turned the key.").verbs(0).toInfinitive().text())
// Mary turn the key
console.log(nlp("Mary designed the key.").verbs(0).toInfinitive().text())
// Mary design the key

let me know if you spot any more thanks

1reaction
spencermountaincommented, Jul 22, 2021

if you wanted to fork/build until then, popping a fix right here should do the trick

Read more comments on GitHub >

github_iconTop Results From Across the Web

'to'-infinitives | LearnEnglish - British Council
Learn about the infinitive form of a verb and do the exercises to practise using it.
Read more >
The Use of the Infinitive - ERIC
The English verb has two major forms, finite and non-finite. ... The symbol * means that the phrase or sentence is incorrect.
Read more >
Using Gerunds and Infinitives | Writing Advice
Both gerunds and infinitives can replace a noun as the object of a verb. Whether you use a gerund or an infinitive depends...
Read more >
Infinitives - Purdue OWL
An infinitive is a verbal consisting of the word to plus a verb (in its simplest "stem" form) and functioning as a noun,...
Read more >
Chapter 25
Infinitives, like participles, operate on relative time—that is, their tense is relative to that of the main verb—thus, the true time of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found