word-analyzer
This module morphologically analyze words entered as string.
'programmer' 'noun''you are programming' you: 'pronoun' are: 'verb' programming: 'noun'
Usage
It requires the external modules: "request", "request-promise" and "cheerio"
const phrase_analyzer = ;
Methods
This module has one method:
- analyze: return a string if the input in a only word o an object if it's a phrase
Example
analyze
Input:
const phrase_analyzer = ; const example1 = { phrase_analyzer } const example2 = { phrase_analyzer }
Output:
1) verb 2) everybody: 'pronoun' want: 'verb' to: 'preposition' program: 'noun'