User:Silviolorusso/prototyping/chitchatwithpetraandmarie

From XPUB & Lens-Based wiki

Chitchat with Marie, Petra and Silvio | 19/01/12

Text-based reworking, databases and stuff

  • "greatest" on wikipedia
  • putting together and create new meaning
  • politician saying I'm right
  • 10 questions
  • ideal city
  • vincent/ wikipedia project
  • student at udeka google alphabet
  • suggestions
  • metahaven
  • collection of sources:
  • news portals
  • Thank you for the add.
  • impoting text into a layout
  • Onomatopee book
  • buy a word in order to have adds
  • nike captcha


++++

in a text each word connected to its definition.


what is behind a word?

recursive process into the same text



what a word can link to?


using urls www.one.com www.day.com www.i.com www.was.com


Disappearance, repetition and consume

I wrote a bit of code that does what we were discussing in class: each word in a text become more transparent each time is repeated. I was thinking at the world of information and news. I was thinking that the meaning of the words is consumed by their repetition. Think of #OccupyWallStreet, think of what will happen with SOPA.

Here's the script if you wanna play with it.

 
#!/usr/bin/python

import re

text = "The text that has to be processed."
words = text.split()
wordsOp = ""
checklist = {}

for words in words:
    # split the word from punctuation
    word = re.findall(r'\w+',words)
    # make the word lowercase
    wordLow = word[0].lower()
    # check if the word is in the dictionary, if the word is there count -1,  if not there add the word to the checklist and count 255(maximum opacity)
    if wordLow in checklist:
        checklist[wordLow] -= 1
    else:
        checklist[wordLow] = 255
    # append words with opacity (HTML)
    wordsOp = wordsOp + "<span style=\"color:rgb(" + str(checklist[wordLow]) + "," + str(checklist[wordLow]) + "," + str(checklist[wordLow]) + ");\">" + words + "</span> "

# print the new string 
print wordsOp