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.

Past-tense conjugation of directive sentences

See original GitHub issue

I’d like to use your library for an auto suggestions where i have to transform past tense to present tense and vice versa for short texts.

Sample

create customer <-> customer created
update customer <-> customer updated

I tried your demo and got the following results:
create customer -> created customer
update customer -> updated customer

Is there any option to move the subject to the beginning or end of the sentence?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
spencermountaincommented, May 6, 2019

yeah, this will take some playing with to get right, i suspect.

for one, exclude from order is simply being mis-tagged - so that’s an easy situation to fix:

let lexicon={
  exclude:'Infinitive',
}
nlp('exclude from order ,lexicon).debug()

the other one is similar, where import becomes imported and it (strangely) gets tagged as an adjective - this is a bug, but can be resolved with the lexicon again:

nlp('import basket', {imported:'PastTense'}).sentences().toPastTense().debug()

hope that helps cheers

0reactions
endeffectscommented, Jul 3, 2019

Thank you, i’ve sent you an email a couple of days ago.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Past Tense: Definition, Meaning, Sentences & Examples
The past tense is one of the three main verb forms in the English language, alongside the present tense and the future tense....
Read more >
Definition of Directive sentences and examples | Learn English
Hello, Command sentences ordinarily, but not always, begin with an imperative (fussy) verb because they tell someone to do something.
Read more >
English Verb Conjugation
English Verb Conjugation ; I · we ; Simple Present Tense · I touch · we touch ; Simple Past Tense · I...
Read more >
The German Verb Sein- To Be (3 Tenses)
In other words, although the verb is 'sein', when conjugated it becomes 'bin' ... Here is the conjugation of sein in the simple...
Read more >
Venir Conjugation in Spanish: verb tables, quizzes, PDF + more
Learn how to conjugate venir in Spanish. Conjugation tables in every tense, including full English translation, example sentences, and more.
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