Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-pos-tagger

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-pos-tagger - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

10

lib/SimplePOSTagger.js

@@ -31,3 +31,3 @@ /*

// Returns an array of lexical categories for word
FunctionWordTagger.prototype.tag_word = function(word) {
SimplePOSTagger.prototype.tag_word = function(word) {
return(this.lexicon[word]);

@@ -37,3 +37,3 @@ };

// Returns a sentence in which function words are tagged
FunctionWordTagger.prototype.tag_sentence = function(sentence) {
SimplePOSTagger.prototype.tag_sentence = function(sentence) {
var that = this;

@@ -49,3 +49,3 @@ var tagged_sentence = [];

// Returns a chart filled with recognised items
FunctionWordTagger.prototype.tag_sentence_chart = function(sentence) {
SimplePOSTagger.prototype.tag_sentence_chart = function(sentence) {
var that = this;

@@ -81,3 +81,3 @@

// Parses the list of words; first line is the lexical category
FunctionWordTagger.prototype.read_words = function(text) {
SimplePOSTagger.prototype.read_words = function(text) {
var words = text.split('\n');

@@ -106,3 +106,3 @@ var category = words.shift();

// Constructor: reads files with function words and calls the callback with itself
function FunctionWordTagger(config_file, callback) {
function SimplePOSTagger(config_file, callback) {
var that = this;

@@ -109,0 +109,0 @@

{
"name" : "simple-pos-tagger",
"version" : "0.0.18",
"version" : "0.0.19",
"main" : "./lib/SimplePOSTagger.js",

@@ -5,0 +5,0 @@ "author" : {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc