natural 6.5.1 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,12 +44,14 @@ const dutchPatternVoca = require('./Dutch/pattern-sentiment-nl.json')
44
44
  const italianPatternVoca = require('./Italian/pattern-sentiment-it.json')
45
45
  const englishPatternVoca = require('./English/pattern-sentiment-en.json')
46
46
  const frenchPatternVoca = require('./French/pattern-sentiment-fr.json')
47
+ const germanPatternVoca = require('./German/pattern-sentiment-de.json')
47
48
 
48
49
  // Negations
49
50
  const englishNegations = require('./English/negations_en.json').words
50
51
  const spanishNegations = require('./Spanish/negations_es.json').words
51
52
  const dutchNegations = require('./Dutch/negations_du.json').words
52
53
  const portugueseNegations = require('./Portuguese/negations_pt.json').words
54
+ const germanNegations = require('./German/negations_de.json').words
53
55
 
54
56
  // Mapping from type of vocabulary to language to vocabulary
55
57
  const languageFiles = {
@@ -72,7 +74,8 @@ const languageFiles = {
72
74
  Dutch: [dutchPatternVoca, dutchNegations],
73
75
  Italian: [italianPatternVoca, null],
74
76
  English: [englishPatternVoca, englishNegations],
75
- French: [frenchPatternVoca, null]
77
+ French: [frenchPatternVoca, null],
78
+ German: [germanPatternVoca, germanNegations]
76
79
  }
77
80
  }
78
81
 
@@ -30,7 +30,7 @@ export type SenticonLanguageType = 'senticon'
30
30
  export type SenticonLanguage = 'Spanish' | 'English' | 'Galician' | 'Catalan' | 'Basque'
31
31
 
32
32
  export type PatternLanguageType = 'pattern'
33
- export type PatternLanguage = 'Dutch' | 'Italian' | 'English' | 'French'
33
+ export type PatternLanguage = 'Dutch' | 'Italian' | 'English' | 'French' | 'German'
34
34
 
35
35
  export declare class SentimentAnalyzer {
36
36
  constructor (language: AfinnLanguage, stemmer: Stemmer, type: AfinnLanguageType)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "natural",
3
3
  "description": "General natural language (tokenizing, stemming (English, Russian, Spanish), part-of-speech tagging, sentiment analysis, classification, inflection, phonetics, tfidf, WordNet, jaro-winkler, Levenshtein distance, Dice's Coefficient) facilities for node.",
4
- "version": "6.5.1",
4
+ "version": "6.6.0",
5
5
  "homepage": "https://github.com/NaturalNode/natural",
6
6
  "repository": {
7
7
  "type": "git",