Skip to content

leejsinclair/loaded-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loaded-language

Identifies terms that often create bias within textual content. The inspiration for this project? I discussion on YouTube that included Eric R. Weinstein.

For more information https://en.wikipedia.org/wiki/Emotive_conjugation, where the

"In rhetoric, emotive or emotional conjugation mimics the form of a grammatical conjugation of an irregular verb to illustrate humans' tendency to describe their own behavior more charitably than the behavior of others. It is often called the Russell's conjugation in honour of philosopher Bertrand Russell who expounded the concept in 1948 on the BBC Radio programme The Brains Trust." (https://en.wikipedia.org/wiki/Emotive_conjugation)

Install

npm install loaded-language

Usage

const loadedLangague = require('loaded-language');
let str = 'That person is a Socialist.';
let result = loadedLanguage(str); 

Result

{
	"anger": {
		"matches": []
	},
	"charged": {
		"matches": [
			"socialist"
		]
	},
	"confusion": {
		"matches": []
	},
	"curiosity": {
		"matches": []
	},
	"happy": {
		"matches": []
	},
	"inspiration": {
		"matches": []
	},
	"inspire_action": {
		"matches": []
	},
	"lust": {
		"matches": []
	},
	"maybe": {
		"matches": []
	},
	"relaxed": {
		"matches": []
	},
	"safe": {
		"matches": []
	},
	"sexually_charged": {
		"matches": []
	},
	"urgency": {
		"matches": []
	},
    "offensive": {
        "matches": []
    }
}


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published