Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
retext-pos-french
Advanced tools
Part-of-speech (POS) tagger for retext.
npm:
npm install retext-pos
var retext = require('retext');
var inspect = require('unist-util-inspect');
var pos = require('retext-pos');
retext()
.use(pos)
.use(function () {
return transformer;
function transformer(tree) {
console.log(inspect(tree));
}
})
.process('I went to the store, to buy 5.2 gallons of milk.');
Yields:
RootNode[1] (1:1-1:49, 0-48)
ββ ParagraphNode[1] (1:1-1:49, 0-48)
ββ SentenceNode[23] (1:1-1:49, 0-48)
ββ WordNode[1] (1:1-1:2, 0-1) [data={"partOfSpeech":"PRP"}]
β ββ TextNode: "I" (1:1-1:2, 0-1)
ββ WhiteSpaceNode: " " (1:2-1:3, 1-2)
ββ WordNode[1] (1:3-1:7, 2-6) [data={"partOfSpeech":"VBD"}]
β ββ TextNode: "went" (1:3-1:7, 2-6)
ββ WhiteSpaceNode: " " (1:7-1:8, 6-7)
ββ WordNode[1] (1:8-1:10, 7-9) [data={"partOfSpeech":"TO"}]
β ββ TextNode: "to" (1:8-1:10, 7-9)
ββ WhiteSpaceNode: " " (1:10-1:11, 9-10)
ββ WordNode[1] (1:11-1:14, 10-13) [data={"partOfSpeech":"DT"}]
β ββ TextNode: "the" (1:11-1:14, 10-13)
ββ WhiteSpaceNode: " " (1:14-1:15, 13-14)
ββ WordNode[1] (1:15-1:20, 14-19) [data={"partOfSpeech":"NN"}]
β ββ TextNode: "store" (1:15-1:20, 14-19)
ββ PunctuationNode: "," (1:20-1:21, 19-20)
ββ WhiteSpaceNode: " " (1:21-1:22, 20-21)
ββ WordNode[1] (1:22-1:24, 21-23) [data={"partOfSpeech":"TO"}]
β ββ TextNode: "to" (1:22-1:24, 21-23)
ββ WhiteSpaceNode: " " (1:24-1:25, 23-24)
ββ WordNode[1] (1:25-1:28, 24-27) [data={"partOfSpeech":"VB"}]
β ββ TextNode: "buy" (1:25-1:28, 24-27)
ββ WhiteSpaceNode: " " (1:28-1:29, 27-28)
ββ WordNode[3] (1:29-1:32, 28-31) [data={"partOfSpeech":"CD"}]
β ββ TextNode: "5" (1:29-1:30, 28-29)
β ββ PunctuationNode: "." (1:30-1:31, 29-30)
β ββ TextNode: "2" (1:31-1:32, 30-31)
ββ WhiteSpaceNode: " " (1:32-1:33, 31-32)
ββ WordNode[1] (1:33-1:40, 32-39) [data={"partOfSpeech":"NNS"}]
β ββ TextNode: "gallons" (1:33-1:40, 32-39)
ββ WhiteSpaceNode: " " (1:40-1:41, 39-40)
ββ WordNode[1] (1:41-1:43, 40-42) [data={"partOfSpeech":"IN"}]
β ββ TextNode: "of" (1:41-1:43, 40-42)
ββ WhiteSpaceNode: " " (1:43-1:44, 42-43)
ββ WordNode[1] (1:44-1:48, 43-47) [data={"partOfSpeech":"NN"}]
β ββ TextNode: "milk" (1:44-1:48, 43-47)
ββ PunctuationNode: "." (1:48-1:49, 47-48)
retext().use(pos)
None, the plugin automatically detects the part-of-speech tag for each
WordNode
(using dariusk/pos-js
), and stores the tags
in node.data.partOfSpeech
.
See contribute.md
in retextjs/retext
for ways to get started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
MIT Β© Titus Wormer
FAQs
Part-of-speech (POS) tagger, converted to French language
We found that retext-pos-french demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.