Coder Social home page Coder Social logo

moimikey / is-satire Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 1.03 MB

Strategically determine if a website is satire or not.

License: MIT License

JavaScript 100.00%
satire satire-sites fake clickbait fake-content algorithm cli cli-utilities npm npm-package

is-satire's Introduction

is-satire

A semi-useful tool for the browser or command line to determine if a website is satirical/fake or actually legitimate.

Works in node.js (see lib/), the browser (see build/) and as a cli utility (is-satire), all-in-one!

Algorithm

  • Check URL against list of known satire sites,
  • If not found in list:
    • Perform fingerprint match:
      1. Check target against predefined list of interested URI paths,
      2. for each found (200 OK) path:
        • Check path against predefined list of interesting keywords,
        • For each found keyword:
          1. Record n=n+1, representing likelihood that target is satire

Accuracy

This utility first matches a target URI against a predefined list of known satire sites, before attempting to match against a predefined list of common URI paths, which may disclose evidence of satirical content. Presently, there is no scientific merit behind this algorithm, therefore accuracy cannot be determined.

Contribute!

It's not an exact science, but seems to get pretty accurate results. The blacklist is pretty comprehensive, so if you get to the scan part, definitely submit a pull request with your results!

CLI

Pre 2.0

is-satire http://www.wonkette.com
checking www.wonkette.com...
Found Keywords: humor, parody, publication, satire, parody, publication, satire, parody, publication, satire
there's a strong likelihood that this is a satire site.

2.0

is-satire 2.0 provides more explicit output, allowing the user to encourage curiosity, in determining whether or not the target is satire.

is-satire [-f force] <-t target>
is-satire -t christwire.org
is-satire -f -t christwire.org
checking christwire.org...
*** trying christwire.org /
*** path { keywordsFound: [], path: '/' }
*** trying christwire.org /about
*** trying christwire.org /about-us
*** trying christwire.org /aboutus
*** trying christwire.org /contact
*** trying christwire.org /disclaimer
*** trying christwire.org /faq
*** trying christwire.org /frequently-asked-questions
*** path { keywordsFound: [ 'invented', 'publication', 'satirical', 'satirize' ],
  path: '/frequently-asked-questions' }

Satire

Satire, Hoaxes and Clickbait

News satire, also called fake news, is a type of parody presented in a format typical of mainstream journalism, and called a satire because of its content.

Satire

Satire is content that is overly exaggerated and meant to be funny and ridiculous, having possibility of being misinterpreted as factual; sources such as TheOnion.com.

Hoaxes

Fake and/or hoaxed content is satire that is pushed as actual news, possibly aimed at targeting a more gullible audience; sources such as MediaMass.net.

Clickbait

Clickbait is content originating from factual content, interlaced with fiction, to encourage fear and conspiracy; sources such as BeforeItsNews.com.

Fun Facts

  • One of the earliest examples of what we might call satire, The Satire of the Trades, is in Egyptian writing from the beginning of the 2nd millennium BC. The text's apparent readers are students, tired of studying. It argues that their lot as scribes is useful, and their lot far superior to that of the ordinary man. Scholars such as Helck think that the context was meant to be serious. cite
  • Of the first known accounts of journalistic satirism, in 1835, Richard A. Locke successfully increased sales of The Sun newspaper by publishing a series of six articles, now known as the Great Moon Hoax, under the name of contemporary astronomer Sir John Herschel. cite
  • The word "courant" (hint The Daily Currant giggle) is an obsolete term for "newspaper." The word was also used in British English dialect to refer to enacting in gossiping. cite
  • Like "courant", "herald" (hint Boston Herald) historically refers to an officer with the status of ambassador acting as official messenger between leaders especially in war; one that conveys news. cite

is-satire's People

Contributors

greenkeeperio-bot avatar jorrit avatar moimikey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jorrit

is-satire's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

sigh. broken cli on npm...

mshertzberg@forge:/Users/mshertzberg/Git/is-satire/src  git:(master) $ npm -g install is-satire
/Users/mshertzberg/.nvm/versions/node/v5.2.0/bin/is-satire -> /Users/mshertzberg/.nvm/versions/node/v5.2.0/lib/node_modules/is-satire/lib/cli.js
/Users/mshertzberg/.nvm/versions/node/v5.2.0/lib
└─┬ [email protected]
  └─┬ [email protected]
    β”œβ”€β”¬ [email protected]
    β”‚ β”œβ”€β”€ [email protected]
    β”‚ β”œβ”€β”€ [email protected]
    β”‚ β”œβ”€β”¬ [email protected]
    β”‚ β”‚ └── [email protected]
    β”‚ β”œβ”€β”€ [email protected]
    β”‚ └── [email protected]
    └─┬ [email protected]
      β”œβ”€β”¬ [email protected]
      β”‚ └─┬ [email protected]
      β”‚   └── [email protected]
      └─┬ [email protected]
        └── [email protected]

mshertzberg@forge:/Users/mshertzberg/Git/is-satire/src  git:(master) $ is-satire
mshertzberg@forge:/Users/mshertzberg/Git/is-satire/src  git:(master) $

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.