{ "cells": [ { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [], "source": [ "import nltk\n", "import random" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [], "source": [ "from urllib.request import urlopen" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [], "source": [ "from nltk import word_tokenize" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "url = 'https://git.xpub.nl/XPUB/S13-Words-for-the-Future-notebooks/raw/branch/master/txt/words-for-the-future/PRACTICAL-VISION.txt'" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "vision = urlopen(url).read().decode('utf-8')" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "tokens = word_tokenize(vision)" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "vision = nltk.text.Text(tokens)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "width = 82 #canvas measures\n", "height = 74" ] }, { "cell_type": "code", "execution_count": 87, "metadata": {}, "outputs": [], "source": [ "#left = line.left_print.lower() #.replace('.','').replace(',','').replace(' ',' ')\n", "#middle = line.query.upper()\n", "#right = line.right_print.lower() #.replace('.','').replace(',','').replace(' ',' ')\n", "\n", "#lang=[]\n", "\n", "#l = [left,' ',middle]\n", "#m = [middle,' ',right]\n", "#r = [right, ' ',left]\n", "\n", "\n", "lista = [] \n", "tmp_line = ''\n", "\n", "counter = 0\n", "\n", "\n", "for line in vision.concordance_list('nine', width=85, lines=1): #analyses the given word and print the lines where it is situated, in this case there is only one but \n", " for x in range(74): #it is repeated 74 times\n", " l = line.left_print[7:] #this picks only the desired words and defines the left side\n", " m = line.query #defines the center (the given word)\n", " r = line.right_print #defines the right side\n", " l = l.split(' ') #split the sentence, both sides\n", " r = r.split(' ')\n", " random.shuffle(l) #shuffles the results for every line, both sides excepts the center, it will be always 'nine'\n", " rl = ' '.join(l).lower()\n", " random.shuffle(r)\n", " rr= ' '.join(r)\n", " results= (f\" {rl.capitalize()} {m} {rr}. \") #capitalize the first letter of the first word of every line\n", " lista.append(results)\n", " \n", "\n", "\n", " patch = \"\\n\".join(lista) #creates effectivly the quilt computing the charachters\n", "\n", " f = 'patcherico.txt' #export the patch for the quilt in .txt\n", " export = open(f, 'w')\n", " export.write(patch)" ] }, { "cell_type": "code", "execution_count": 88, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "82" ] }, "execution_count": 88, "metadata": {}, "output_type": "execute_result" } ], "source": [] }, { "cell_type": "code", "execution_count": 47, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "82\n" ] } ], "source": [ "print(len(' Than there six are more thousand nine languages the hundred world more across. '))" ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "77\n" ] } ], "source": [ "print(len('There are more than six thousand nine hundred more languages across the world'))" ] }, { "cell_type": "code", "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "82" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "f = 'patchericofortheconcordance.txt'\n", "export = open(f, 'w')\n", "export.write(results)" ] }, { "cell_type": "code", "execution_count": 37, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n", "Displaying 7 of 7 matches:\n", "s in fostering communication amongst readers and speakers of different languages \n", "ly vital contribution . Not just for readers that want to read other languages , \n", "s between writers , publishers , and readers . And because of our access to and c\n", " want to establish a base of devoted readers . Earlier in the process , someone w\n", "the translators and our most devoted readers started sharing the work on Facebook\n", " magazine that reached a few million readers . In the USA , the story was nominat\n", "s between writers , publishers , and readers . When we act out our ideas , the fu\n", "None\n", "uld do with the resources we valued := language =, knowledge and our web of connection\n" ] } ], "source": [ "## left = line.left_print.lower() #.replace('.','').replace(',','').replace(' ',' ')\n", "middle = line.query.upper()\n", "right = line.right_print.lower() #.replace('.','').replace(',','').replace(' ',' ')\n", "\n", "lang=[]\n", "\n", "#l = [left,' ',middle]\n", "#m = [middle,' ',right]\n", "#r = [right, ' ',left]\n", "\n", "for word in range(72):\n", "\n", " print(vision.concordance('readers',width=82))\n", " for line in vision.concordance_list('language', width=84, lines=1):\n", " x = ' ' * (word*4)\n", " z = len(x)\n", " results=(f'{line.left_print}= {line.query} ={line.right_print}')\n", " #for lines in line:\n", " #results = random.choice(l)+random.choice(m)+random.choice(r)\n", " lang.append(results)\n", " print(results)" ] }, { "cell_type": "code", "execution_count": 421, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "78\n" ] } ], "source": [ "print(len('Six thousand more are than there nine world across the languages hundred more.'))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 4 }