Skip to content

booyaa/fuckcensorship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fuck censorship

Another NaNoGenMo 2016 entry.

Anne Haight's "Banned Books 387 B.C. To 1978 A.D." gives a history of book-banning through the ages. Many of the banned books that Anne Haight discusses are available from Project Gutenberg.

My code censors them.

INTRODUCTION

Scepticism is as much the result of knowledge, as knowledge is of
scepticism. To be content with what we at present know, is, for the
most part, to shut our ears against conviction; since, from the very
gradual character of our education, we must continually forget, and
emancipate ourselves from, knowledge previously acquired; we must set
aside old notions and embrace fresh ones; and, as we learn, we must
be daily unlearning something which it has cost us no small labour
and anxiety to acquire.

becomes...

█████████████

██████████ ██ ██ ████ ███ ██████ ██ ██████████ ██ █████████ ██ ██
███████████ ██ ██ ███████ ████ ████ ██ ██ ███████ █████ ███ ███ ███
████ █████ ██ ████ ███ ████ ███████ ███████████ ██████ ████ ███ ████
███████ █████████ ██ ███ ██████████ ██ ████ ███████████ ███████ ███
██████████ █████████ █████ █████████ ██████████ █████████ ██ ████ ███
█████ ███ ███████ ███ ███████ █████ █████ ████ ██ ██ ██████ ██ ████
██ █████ ██████████ █████████ █████ ██ ███ ████ ██ ██ █████ ██████
███ ███████ ██ ████████

I will create a separate repo for all the censored works.

Usage

  • git clone https://github.com/booyaa/fuckcensorship
  • cd fuckcensorship
  • Place books (text format) to be censored in the folder called IN.
  • ./fuckcensorship.sh
  • Your censored material will be in the folder clled OUT.

Output

You can see the censored novels here.

Change log

0.1.1 - fixed regex

0.1.0 - initial release

Props

  • lou - for suggesting I censor books on the banned list.
  • Project Gutenberg for the books and the banned list.

Copyright 2016 Mark Sta Ana.

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> at your option. This file may not be copied, modified, or distributed except according to those terms.

About

Another NaNoGenMo 2016 entry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages