Tense detection for Fin NLP
npm install fin-tenseDetect sentences tenses.
```
npm i --save fin-tense
`typescript
import * as Fin from "finnlp";
import "fin-tense";
const sentence = "He was demonstrably wrong."
const instance = new Fin.Run(sentence);
const result = instance.tense();
console.log(result);
`
The above example would give:
`javascript`
[
["past","simple"]
]
- ["present","simple"] Examples:["present","progressive"]
- I work in a bank
- I don't work in a bank
- Examples:["past","simple"]
- She's cooking
- She's not cooking
- Is she working
- Examples:["past","progressive"]
- I cooked
- I didn't cook
- What did you cook?
- Examples:["present","perfect","simple"]
- She was working
- Wasn't she working
- What was she working on?
- Examples:["present","perfect","progressive"]
- I have finished it
- Haven't I finished it
- When have she finished working?
- Examples:["past","perfect","simple"]
- I have been learning english for a long time
- They haven't been playing tennis for a long time
- How ling have they been learning english
- ["past","perfect","progressive"]
- They had already met sarah before
- They hadn't met sarah
- Had they met sarah yet?
- Examples:["future","simple","(going)"]
- I had been living in germany for years
- How long had you been living here?
- Examples:["future","simple"]
- They are going to see me
- Are they going to see me
- When are they going to see me
- Examples:["future","progressive"]
- They will see me
- Will they see me
- When will they see me
- They won't see me
- Examples:["future","perfect","simple"]
- I will be having fun
- Will I be having fun
- How will I be having fun?
- ["future","perfect","progressive"]`
- They will have met me by then.
- They won't have met me by then
-
- They will have been working with John next week
- How long will they have been working with John next week?
Please review this article