# commres.net

### Site Tools

text_mining_the_complete_works_of_william_shakespeare

# Text Mining the Complete Works of William Shakespeare

> setwd("d:/rdata")
> TEXTFILE = "pg100.txt"
> if (!file.exists(TEXTFILE)) {
dir.create(dirname(TEXTFILE), FALSE)
}
> shakespeare = readLines(TEXTFILE)
> length(shakespeare)
[1] 124787
> head(shakespeare)
[1] "The Project Gutenberg EBook of The Complete Works of William Shakespeare, by"
[2] "William Shakespeare"
[3] ""
[4] "This eBook is for the use of anyone anywhere at no cost and with"
[5] "almost no restrictions whatsoever.  You may copy it, give it away or"
[6] "re-use it under the terms of the Project Gutenberg License included"
> tail(shakespeare)
[1] "http://www.gutenberg.org/2/4/6/8/24689"    ""
[3] "An alternative method of locating eBooks:" "http://www.gutenberg.org/GUTINDEX.ALL"
[5] ""                                          "*** END: FULL LICENSE ***"
> shakespeare = shakespeare[-(1:173)]
> shakespeare = shakespeare[-(124195:length(shakespeare))]
>
> shakespeare = paste(shakespeare, collapse = " ")
> nchar(shakespeare)
[1] 5436541
> shakespeare = strsplit(shakespeare, "<<[^>]*>>")[[1]]
> length(shakespeare)
[1] 218
> (dramatis.personae <- grep("Dramatis Personae", shakespeare, ignore.case = TRUE))
[1]   2   8  11  17  23  28  33  43  49  55  62  68  74  81  87  93  99 105 111 117 122 126 134 140 146 152 158
[28] 164 170 176 182 188 194 200 206 212
> length(shakespeare)
[1] 218
> shakespeare = shakespeare[-dramatis.personae]
> length(shakespeare)
[1] 182
> library(tm)
>
> doc.vec <- VectorSource(shakespeare)
> doc.corpus <- Corpus(doc.vec)
> summary(doc.corpus)
> doc.corpus <- tm_map(doc.corpus, content_transformer(tolower))
> doc.corpus <- tm_map(doc.corpus, removePunctuation)
> doc.corpus <- tm_map(doc.corpus, removeNumbers)
> doc.corpus <- tm_map(doc.corpus, removeWords, stopwords("english"))
>install.packages("SnowballC")
>
> library(SnowballC)
>
> doc.corpus <- tm_map(doc.corpus, stemDocument)
> doc.corpus <- tm_map(doc.corpus, stripWhitespace)
> inspect(doc.corpus[8])
<<VCorpus>>
Metadata:  corpus specific: 0, document level (indexed): 0
Content:  documents: 1

[[1]]
<<PlainTextDocument>>
Content:  chars: 79152
> 
> TDM <- TermDocumentMatrix(doc.corpus)
> TDM
<<TermDocumentMatrix (terms: 27610, documents: 182)>>
Non-/sparse entries: 206399/4818621
Sparsity           : 96%
Maximal term length: 33
Weighting          : term frequency (tf)
> inspect(TDM[1:10,1:10])
<<TermDocumentMatrix (terms: 10, documents: 10)>>
Non-/sparse entries: 1/99
Sparsity           : 99%
Maximal term length: 9
Weighting          : term frequency (tf)

Docs
Terms       1 2 3 4 5 6 7 8 9 10
aaron     0 0 0 0 0 0 0 0 0  0
aarons    0 0 0 0 0 0 0 0 0  0
abaissiez 0 0 0 0 0 0 0 0 0  0
abandon   0 0 0 0 0 0 0 0 0  0
abandond  0 1 0 0 0 0 0 0 0  0
abandoned 0 0 0 0 0 0 0 0 0  0
abase     0 0 0 0 0 0 0 0 0  0
abashd    0 0 0 0 0 0 0 0 0  0
abate     0 0 0 0 0 0 0 0 0  0
abated    0 0 0 0 0 0 0 0 0  0
>

> DTM <- DocumentTermMatrix(doc.corpus)
> inspect(DTM[1:10,1:10])

<<DocumentTermMatrix (documents: 10, terms: 10)>>
Non-/sparse entries: 1/99
Sparsity           : 99%
Maximal term length: 9
Weighting          : term frequency (tf)

Terms
Docs aaron aarons abaissiez abandon abandond abandoned abase abashd abate
1      0      0         0       0        0         0     0      0     0
2      0      0         0       0        1         0     0      0     0
3      0      0         0       0        0         0     0      0     0
4      0      0         0       0        0         0     0      0     0
5      0      0         0       0        0         0     0      0     0
6      0      0         0       0        0         0     0      0     0
7      0      0         0       0        0         0     0      0     0
8      0      0         0       0        0         0     0      0     0
9      0      0         0       0        0         0     0      0     0
10     0      0         0       0        0         0     0      0     0
Terms
Docs abated
1       0
2       0
3       0
4       0
5       0
6       0
7       0
8       0
9       0
10      0
> 
> findFreqTerms(TDM, 2000)
[1] "come"  "enter" "good"  "king"  "let"   "lord"  "love"  "now"   "shall" "sir"
[11] "thee"  "thou"  "thy"   "well"  "will" 
> findAssocs(TDM, "love", 0.75)
\$love
loves  beauty     eye   verse beautys
0.81    0.78    0.76    0.76    0.75 
> TDM.common = removeSparseTerms(TDM, 0.1)
> dim(TDM)
[1] 27610   182
> dim(TDM.common)
[1]  61 182
> inspect(TDM.common[1:10,1:10])
<<TermDocumentMatrix (terms: 10, documents: 10)>>
Non-/sparse entries: 93/7
Sparsity           : 7%
Maximal term length: 6
Weighting          : term frequency (tf)

Docs
Terms     1 2  3  4  5  6  7  8 9 10
act     1 4  6  9  6  3  2 10 1  0
art    51 0  9  3  5  3  2 17 0  6
away   18 5  8  4  2 10  5 13 1  7
can    44 8 12  5 10  6 10 24 1  5
come   15 5 11 13  7 11  9 83 6 10
comes   2 4  3  4  4  3  4  5 1  3
enter   0 7 12 11 10 10 14 87 4  6
exeunt  0 3  8  8  5  4  7 49 1  4
exit    0 6  8  5  6  5  3 31 3  2
first  12 7  7 22 63  8  4 34 0  2
> 
> library(slam)
> TDM.dense <- as.matrix(TDM.common)
> TDM.dense
Docs
Terms      1  2  3  4  5  6  7   8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
act      1  4  6  9  6  3  2  10  1  0  2  1  1  1  1  1  1  1  4  3  1  1  2  2  6
art     51  0  9  3  5  3  2  17  0  6 14  1  6  4  4  5  4  5  4  1  6  4  2  1 19
away    18  5  8  4  2 10  5  13  1  7  3  3  3  1  2  1  7  3  6  9  7  7  5  2 13
can     44  8 12  5 10  6 10  24  1  5 23  4  5  1  5  2  1  3 10 14 11 11 10 11 18
come    15  5 11 13  7 11  9  83  6 10 37 12  4 10 11  5 15  8 20 32 24  9  5 12 26
comes    2  4  3  4  4  3  4   5  1  3 12  4  4  1  4  1  6  2  4  4  2  1 11  3  5
enter    0  7 12 11 10 10 14  87  4  6 23  6 13  3  7  7 14  9 21 21 21 15 13 12 17
exeunt   0  3  8  8  5  4  7  49  1  4 14  3  5  1  2  1  6  4 11 16 10  8  9  4 13
exit     0  6  8  5  6  5  3  31  3  2  5  3  3  4  1  4  4  2  2  5  7  2  8  9 16
first   12  7  7 22 63  8  4  34  0  2 13  2  6  5  2  0  3  3 50 31 28 23 20 12 16
give    27  4 14  2  8 11 13  38  4  4 15  4  7  1  2  1 12  2 10 24  2  7  7  6  9
good    15 20 31 12 14 13 13  81  8 12 50 12 33  1  3  8 10  6 33 25 16 16 10 11 36
great   10  5 15  9 12  5 11  37  0  2  3  2  5  3  1  2  0  3  8  7  6 12  8  3  9
hand    18  1 13  5  0  3  2  26  1  2  3  8  2  0  4  4  2  3  3  2  5  3  4  2 13
hath    43  8  8  8 18 10  9  35  2 12 25  7  6  2 12  4  4 12  8 20 12 10 17 12 39
hear     6  2  4  8  8  1  9  29  2  1  7  3  2  0  4  1  4  5 12 17 12 14  3  3  8
heart   50  3  3  4  3  1  5  33  1  3 15  5  7  0  0  4  5  1  7 12  7  4  8  3  9
ill     24  4 12  6 18 12  5  58  4  6 27  5  7  6  8 13  6  6 13 18  7 20 12 13 34
know    17 10 19 15 19 20 11  34  7  2 17  7  8  1 13 12 11  5 12 23 10 10  9  5 17
leave   10  6 11  1  5  3  4  15  3  4  5  2  1  2  1  0  3  2  5  6  4  4  9  8  8
let     26  5  8 11 16  7 15  65  1 11 18  4  4  1  5 12  8  7 17 32  6 13 10  7 21
life    23  1 10  3  8  3  5  13  1  2 15  1  5  4  1  2  0  9  1  4  1  5  1  2 14
like    34 11  8  4  6  6 10  43  2  4 34  8 11  5  3  5  5  4 12 21 12 14  7  8 20
look    22  2  2  6  2  3  6  19  2  2 13  5  4  0  4  3  0  3  5  4  4  2  3  4 10
lord     1 16 49 37 79 25  7  47  0  2 17  2  7  1  1  1  1  5  6  4  1 10 29 25 25
love   162 25 10  8  9  8 15  23  3 13 49 24 23  1  5  8  3  2  6 14  4  4  4  3 15
made    19  5  2  0  7  3  2  31  1  4  9  2  8  4  0 10  0  1  9 10 13  8 10  6 20
make    43  7 22  5  6  9  9  65  2  3 15  8  5  2  4  5  5  8 18 24  6 13 19 12 21
man      5  8 13  4  9  7 11  31  0 13 51 10  7  2 10 12 15 18  9 13 14 10  7 11 18
may     29 16 11  7  7  5  5  33  1  7 16  4  6  4  1  9  6  5 10 18  4  6 11  5 18
men     15  3  4  1  6  1  3  19  1  5  3  3  3  2  2  0  3  4  5 11  6  5  4  3  5
mine    63  7  9  3  7 17  5  46  0 10 15  3  5  3  2  8  2  9  7  8  5  5 11  9 10
much    17  7  6  7  5  2  6  21  4  5 13  5  7  2  1  1  6  7  3  8  5  3  8  4 11
must    21 11 13  2 15  6 13  40  3  4 21  6  4  2  3  3  5  1 16 34  1 12  9 14 27
name    17  1  6  6  2  4  3  15  0  3  6  0  3  1  3  9  2  1  2  7 12 11  3  3 11
never   15  6  5  5  3 10  4  31  4  4 11  6  1  0  8  0  4  7  4 13  3  8  2  6 10
now     46 12  8  9 11 12 17  71  3 12 29  9  5  7  7  3 17 12 11 34 13 10  7  9 30
old     22  3  5  5  0  3  4   3  7  6 13  3  6  2  1  0  2  3  1  8  2  5  2  3  3
one     43 15 17  4 11  8  4  37  1  9 25  5  6  3  4  8  8  8 16 31 22 10 14 18 23
say     28  8 23  5 19  4 12  41  3  2 13 15 10  3  8  4 11  5 12 27 19 14  5  3 20
scene    0  4  5  7  5  3  7  37  2  2 14  3  4  2  2  2  4  1 11  7  7  7  7  5 11
see     35  7  5  8  8  9 10  35  1  8 22  2  5  1  7  4  9 14 11 12  8  5  6  5 14
shall   59 14 27 26 32 16 19 109  8 17 25  5 13  2  4  6  7  8 33 54 19 17 25  7 33
sir      0  9 31  1 31 20 13  66 13 12 18  3 25 12 22 26 31 22 14 37 24  9 25 13 29
speak    8 10  8  3 13  7  5  33  4  9 10  2  3  1  2  3  2  7  9 30  2 14  5  2 16
take    13  1 14  5 10  7  5  43  2  5 11 11  5  4  3  2  2  7  8 15  9  2 10  7 16
tell    15  7  3  3  6  3  4  25  2  7 12  6  2  4  2  7  7  7  9  9 10  8  4  1  7
thee   162 13 33  4 18  8 14  95  8 17 40 14  8  8  9 11 23 14  7 15 23 21 12  4 55
think   15 13 10  8  4  4  9  19  1  2 15  6  2  0  3  8  3  9 10 12  9  9 14  5 11
thou   235 14 39 10  9 22 29 150 11 30 81 11 10 14 37 20 33 30 19 15 35 28 29 12 81
thus    22  2  3  2  1  0  5  19  0  4  9  1  2  3  7  1  1  3  9 17  1  5  4  4 15
thy    287 22 41  9  8  5 12  99  5 14 39  5 12  7 17 12  9 14 17 15 33 26 14  8 79
till    14  4  1  3  7  1  4  22  3  0 13  2  0  8  2  3  4  8  5  4  0  6  5  0  4
time    53  5  8  2  6  8 10  20  1  5 20  5 11  1 17  4  6  2  5 16  5  6  9  5 24
Docs
Terms    26 27 28 29 30 31 32 33 34 35 36  37 38 39 40 41 42 43 44 45 46 47 48 49 50
act     3  5  1  7  1  0  0  0  0  5  1   1  1  1  1  2  1  1  2  1  2  2  1  0  1
art     9  6  4  3  0  0  1  0  1  2 12  15 20  1 11  3 13  4  7  1  1  0  0  0 11
away    5  7  4  5  4  0  1  0  0  4  2  16  7  3  3  2 14  4  4  6  0  3  0  3 10
can     8  5  3 13  1  0  1  0  4  7  3   4 11  4 11  7  9  4  2  3  2  2  0  3 12
come   10 17 15 19  7  0 13  2  6 28  9  24 19 16 12  7 40 23 14 32  2 10  0  9 19
comes   1  7  7  3  0  0  1  1  1  5  1   6  1  2  5  5 13  3  9  5  2  2  1  1  5
enter  13 12 10 23  7  2  6  2  3  8  5  25  7  8 19  7 15  5 12 11  4  9  1 17 28
exeunt  6  8  6  9  6  2  2  1  1  2  3   9  3  3  7  3 10  4  9  8  4  7  0  7 11
exit    4  6  5 13  2  2  4  1  2  5  4   8  7  4 11  3  2  2  7  6  0  1  1  5 10
first  11  1  7  4  1  0  1  0  1  4  1   3  1  2  1  4  3  0  3  6  1  3  0  2  1
give    8 13  8 15  1  0  8  2  2 11  7  19  3  5  6  7  9 10 10  7  5 10  1 10 18
good   25 20 28 22  2  2 13  2  1 19 17  31 20 12  2 11 44 41 26 28  4 14  0 15 39
great  11  1  2  8  1  2  2  0  1  9  4   5  3  5  5  9  2  5  5  4  6  3  0 13 17
hand    5  5  2  3  0  0  1  0  1  6  3  10  2  1  4  7  3  6  7  5  3  6  0 12  4
hath   11 17 12 11  6  2  1  0  2 14 10  12 12  6 12 19  9  3 25 10 10 12  0 14  9
hear    8  9  5 10  0  0  1  0  2  5  9  12  7  4  5  6  6  0  7  4 11  3  1  1  3
heart   7 10  2  9  0  0  1  0  3  4  1   2  7  3  3  3  8  3  5  6  1  6  0  4  4
ill    17 12 13 16  1  1  5  0  3 11 21  28 17  3 19  5 22  6  7 18  3  4  0  9 10
know   16 15 14 13  3  3  6  2  5 13  7  18  7  5  4  3 11  2 10  9  4  6  0 11 20
leave   3  8  5 10  0  0  1  0  2  2  4   6  5  0  4  5  5  0  5  1  1  1  1  2  3
let    14 19 11 21  2  2 10  4  4 23 12  16  9  6 11 10 17 16 18 15  7 12  0 14 16
life   14  7  4  9  1  0  2  0  3  7  3   6  4  3 15  6  2  2 11  5  2  2  0  1  8
like   17 22 17 20  5  1  3  1  5  7  8  18 16  9 10 13 17  9 19  9 11  6  0 14 12
look    5 10  8 15  0  0  1  0  1  2  2   6  2  1  3  4  9  1  9  7  2  3  0 15  9
lord   21 51 62 50 10  2  4  1  8 36 20  44 22 19 24 57 32  9 50 14 10 11  0 11 17
love    6  8 13 28  2  0  2  0  5  8  2  13  5  3  5  1  7  1 10  2  0  3  0  3  5
made   15  8  4  8  1  1  1  0  2  5  2   5  4  2  3  3  8  1  2  2  5  2  0  1  4
make   10  8 11 19  1  0  3  1  2 10  7   9  9  8  9  7 16  5  9 10  9  4  0  2  8
man    17 10 14  9  6  2  1  0  0 10  6  26 14  4 11 12 12 12  6 19  4 10  0 16 18
may     9 19 10 20  5  0  4  1  6  6  8   6  8  9  7 11  7 10 15  4  6 16  0 10 15
men     8  2  3  3  0  1  1  1  0  1  8  12  6  6  1  9  4  9  5  8  2  5  0 11 23
mine   16  4  6  6  2  0  1  0  0 12  2   2  6  4  4  3  9  4  7  7  0  3  0  4  5
much    8  9 12 11  1  1  2  3  4  5  6   6  8  3  5  5  6  3  8  5  3  6  0  6  4
must   10 14  7 17  7  0  5  0  3  8  2  12  9  5  3  8 15  5  9  6  6 12  0  9 11
name    2  2  1  2  1  1  0  1  1  2  2   5  6  2 10  4  5  3 11  0  3  7  0  3 15
never   9  6  4  6  1  1  2  0  0  6 11   9  6  5  9  9  7  3  7  3  9  5  0  9  9
now    18 19 10 29  2  1  4  0  7 26 16  29 14 12 13 16 24  7 26 23  8 19  1 17 32
old     9  4  9  1  1  1  1  1  1  1  6  16  4  1  2  6 12 16  3  4  1  1  1  1  8
one    20  6  8 16  3  1  2  0  4  7  8  12  5  6  3 11 13  6  4  6 11 11  1  4 16
say     6 10 17  8  0  1  4  1  3 10  5  12 11  4  4 14 11  7  7  7  2  8  0 10  7
scene   5  6  4  5  3  1  1  1  1  2  3   4  3  4  5  4  4  2  6  5  2  6  1  7  9
see     7  6 10 14  2  1  1  0  3  8  8  15  5  2  4  7  9 18  6 16  0  7  1  7 13
shall  22 23 19 29  4  1 10  1 10 17 41  32 32 12 17  6 19 15 43 33 17 32  0 18 41
sir    26  3 13 14  1  7  0  4  1 32 10  15 13 18  8 17 36 58  7 41  0  5  0  1  8
speak  10 27  8 14  1  1  3  2  0  7  8  13  5  1  2 10  8  1  6 13  4  0  0  5  7
take   14 10  9  7  2  0  0  0  0  8  4   4  3  3  7  8  6  3  8  7  3  4  0  5 17
tell    5  9  6  6  2  1  1  1  2 15  6  17 12  3 11 10  9  1  4  4  7  3  0 13 14
thee   16 22  6 10  2  0  0  4  0 15 12  44 20  2 24  4 39  5 20 16  0 19  0  9 22
think  10 16 10  9  0  0  2  0  4  6  7   8  8  6  4  3 11  4  7  5  1  5  1  7 12
thou   43 28  7 27  6  0  4  4  2 27 40 106 60  3 44 26 68 21 35 15  0 19  0  4 53
thus    8  9 13 10  0  0  4  0  1  6  3   5  1  0  6  5  2  6  7  3  3  5  1  4  3
thy    29 35  3 20  3  0  4  0  0 21  7  42 39  2 20  6 24  8 26 18  0 24  0 14 25
till    2  4  1  1  2  0  1  0  1 10  2   2  1  2  2  3  3  2  4  5  1  2  0  3  2
time    7 10 11 10  0  2  0  0  4  9 13   8  7  6 10  7  6  6  9  1  4  4  0  5  4
Docs
Terms    51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
act     1  1  1  1  1  1  1  1  1  1  3  3  2  1  0  1  2  6  4  3  2  6  1  1  4  5
art     1  6  7  2  4  8  1  3 11  7  8  7  4  2  2  4  5  0  2  3  1  0  4  3  8  4
away    2  6  2  7  6  2 13  6 15 18  6  8 11  0  0  4 13  2  4  3  1  2  1  3  4  9
can     8  4  1  2  9  4 11  7 14 16  9  8  5  2 11  3  6  8  5 13  3  5  2 11  8  5
come    6 14  9  7  8  5 13 13 11 23  8 13  5  2  3 12 10  4 11  7  3 17  5  5  9  8
comes   2  1  1  1  2  0  1  2  2  1  4  4  3  2  1  4  3  4  4  1  2  1  2  1  2  1
enter   7 19 13 17 15 15 13 13 12 25 16 12 19  2  5 20 21 13  9  7  7 17  4  8  8 10
exeunt  2  7  4  9  8  7  8  7  7 12  3  6  6  1  2 12  6  5  6  3  3  7  3  2  4  7
exit    5  8  5  5  6  7 11  3  8  6  6  3  2  0  3  1  5  3  4  3  2  5  2  1  4  3
first   1  8  8  5  8  4  9  6 10 10  2  3  1  7  1  7  3  4 27  2 20  2  0  7  4  1
give    2  5  3  4  5 15  7  6  9  5  6  5  8  1  8  5  5  7  7  5  4  6  5 14  5  5
good   19  1  8  9  4  8 12 15 17 14  3  4  7  0  7  5 11 16 23 21 17 40 14  5 10 10
great   3  7  8  3  8  3  7  4  8  6  5  4  4  1  3  2  3 10  7  9  5 13  1  5  6  1
hand    3  4  1  4  1  7  3  2  8  6  3  3 12  0  7  5  6  3  3  6  1  5  4 13 13 16
hath   11 11 14 10 10  7 11 12 11 19  9 14 13  1  8 17  9  8  5  8  0  2  6 11 16 10
hear    1  5  0  0  2  2  3  3  4  3  1  9  6  3  3  2 10  6  5  8  1  7  2  7  7  6
heart   7  4  2  7  7  4  8  7 15  4  3  9 14  2  5  3  4  4  5  8  0  4  3  2  0  4
ill     4 27 11 10  8  8 12  7  8 11  6 11 14  3 18  8  9 11  8  4  5 13  5  5  8 14
know    8  5  2  3  4  3  2  6  8  4  4  3  7  1  4  4  3 15 12 15  3 14  3  3  5  5
leave   2  6  1  3  4  4  4  7  5  6  2  8  9  0  9  8  5  6  7  7  5  5  2  3  3  1
let     9 11  9  8 14  7 17 11 13 19 11 11 14  3  5  9  8 14  8  6  5 14  4 11 14 13
life    1  5  2  3 14  1  1  6 20  8  0  9 12  0  2  1  5  6  8  5  1  5  0  2 10  9
like   13 18  8 14  7  3  7  8 19 12  6  6 23  0 10  9  9 10  9 10  6 12  8  8  8  8
look    6  6  3  3  0  0  3  4 10  3  3  4  3  1  2  0  2  4  2  0  0  3  2  5  6  7
lord    9 17 14 20 29 23 38 21 45 34  9 20 14  0 14 22  6 40 30 28 10 35  1  8  3 12
love   29  1  2  6  6 10  9  0  2  4  2  1  6  1 20  8  5  5  5  6  2  5  2 16 10  6
made    3  3  2  2  4  2  2  7  6  8  6 13  4  0  2  6  4  6 11  6  4  8  1 10  7  7
make    5 12  5  3  3  8 14  4 16 17  3 14 12  3  9  7  8  6  9  8  3 15  3 13 13  8
man     1  4  5  5  6  7 16 13 11 11  4  4  6  4  3  5  3  7 11 14  9 24  5  2  7  2
may    11 12 10  8  4 15  8  6 10  9  6 10  9  3  6 17  5 10 11 15  9 15  2  3 14  7
men     3 16  3  3  2  0  0  1  9 14  1  9  3  4  1  8  6  7  4  6  4  8  4  9  3  5
mine    6  1  8  0  8  4  9  5 13  7  5  6  9  1 12  5  4  4  7 13  3  6  8  2  6 10
much    6  2  5  1  4  2  1  3  4  6  2  2  8  1  7  5  4  9 10 11  4 11  3  6  4  5
must   10  8  2  5  1  9  8  3  1  7  5  4 11  1  5 14  4 11 13 11  3 19  7  2  9 16
name    1  6  3  0  8  3  2  9  2 10  2  0  2  3  0  1  3  3  6  1  3  2  5  3  7  1
never   9  5  3  7  5  5  9  7 10 15  1  5 14  2  1  4  2  7  7  6  4  8  2  4  6  8
now    13 13 15 15 15 16 13 14 20 25 11 19 32  4 17 31 22 19 20 24 10 20 11 12 15 10
old     2  3  1  3  4  0  2  1  0  3  8  2  1  1  1  1  1  2 16  2  5  6  5  2  2  2
one    12 15  4  7  7  5  9  4  8 13  3  8 10  0  5  4  4 18 15  7  9 17  3  7  4  3
say     8  3  8  2  6  8  8  1 22 33  3  2  6  2  7  6 10  9 15  8  4 11  6 11 12  7
scene   2  7  5  4  7  5  5  4  3 10  3  5  6  1  2  8  8  4  4  1  2  5  2  1  4  3
see     9  4  6 13  5  5  8 15 11  7  4  6 14  1  4  7  6  8  6  4  2 13  0  4  9  5
shall  22 22 15 12 21 25 37 18 17 43 17 32 18  3 28 28 11 20 15 22  6 47  8 33 36 13
sir     0  6  1  6  6  0  4  9  1 11  0  6  0  0  1  5  2 22 23  7  9 27 28  1  2  5
speak   8  5  2  5  3  4  3  1  8  7  3  9 13  2  4  3 14  6 12 10  4  7  3  8  5  2
take   17  4  2  9  8  5  8  9 11  7  1  9  5  0  8  9  7 15  2  9  3  9  4  5  2  4
tell   10  1  5  2  1  3  6  4  4  7  2  5  3  2 16 10  2  6  4  3  5  3  2  2  6  4
thee   11 22 13 23 26 17 14 16 33 38 20 35 33  5 12 13 20  3  1  8  2  5  9 13 31 15
think   1  4  4  3  2  2  3  8  5  5  1  4  4  1  2  5  1  3 10  7  1  9  2  2  5 10
thou   30 59 23 20 34 38 23 38 47 61 35 61 46  7 26 20 60  3  2 11  4  5 22 25 77 31
thus    4  5  6  1  8  5  1  7  8  5  4 10  1  1  1  6  5  6  6  7  2  8  2  1  2  2
thy     9 35 30 41 33 31 28 33 48 39 40 52 61  5 32 12 38  0  5 14  1 12 14 27 42 14
till    3  2  2  3  1  2  9  8  2  2  1  5  5  1  4  9  1  4  3  3  1  6  1 13  1  3
time    6  2  4  4  1  2  7  1  4  4  3  3  3  1  4  5  4  6  7  7  3  5  3  4  5  4
Docs
Terms    77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
act     2  1  2  2  1  1  1  3  3  2  1  1  1  1  1  1  3  2  2  1  1  3  3   2   3
art     5  7  1  3  7  5 10 12  7  6  6  2  1  0  6  5  8  2  3  3  1 10  7  12   3
away    8  2  0  7  4  5 20  4  3  4  6  4  1  2  8 12  2  4  3  1  1  6  4   9   9
can     0  7  8  2  1  1 20  6  2  7  4  6  1  0 14 10  5  4  7  5  3  8  5  21   4
come   16  5 18 17 12 22 19 15 27 15 12  5  4  5  9 20 14  5 14  8 12  6 23  33  19
comes   2  3  2  6  3  2  8  7  4  3  1  2  3  1  5  5  3  2  1  3  4  4  2   9   2
enter  15  5 14  8  6 10 19 13 18 16 15  4  4  2  9 14 16 12 10 10 18 10 11  26   3
exeunt  7  5  4  6  5  7  8  5  9  7  5  3  1  0  7  5  7  6  8  3  9  6  3  13   3
exit    2  5  8  3  6  4 14  6  8  9 11  2  5  5  1  6  3  4  9  4  5  3 12  17   5
first   2  1  3 25  1  5  3  1  7  3  6  1  2  1  8  3 13  0 17 18  4 15  3   5   7
give    6  2  7  6 10 10  9 10  8 10  4  5  4  3  6 11  7  2  5  3  7 10  8  11   8
good    7 12 19 10 19 11 14 19 17 23 11  7  9  4 23 12  5  7 19 14  6 11 27  47  15
great   8 10  5  5  4  3  7  4  3 10  4  7  1  1  1 23 12  6  4  5  4  2  7   9   1
hand   11  8  4  8  4  5  5  3  8  9  3  1  1  1 10  4  5  5  6  4  2  2  1   4   5
hath   21  6  9 10  4  6 23  9 12  5  7  4  8  2 10 13 14 12 11 11  2  6 19  38   8
hear    2  7  5 21  3  1 10  4  0  9  4  6  4  0  8  4  0  5  6  4  3  1  7  10   9
heart   7  0  9  6  8  4 11  7 16  3 10  0  4 11  6 13  4  4  3  5  6  2  4   5   4
ill     4  3  2  1  9  3 15 22 13 16 11  4  6  1 11 17  9  7  9  6  6  6 18  10   5
know    7 19 15 21  6  7 23 17  5 22  9 14  6  2  9 13  7  4  7 12  3 12 15  22  15
leave   4  4  5  6  1  3  4  2  3  2  0  0  1  0  1  4  4  0  2  6  0  4  3   7   4
let    14 11 15 21 13  4 21  8 16 22  9  6  2  2 12 17  5  4  7 10  9  7 25  24  16
life    4  3  0  1  2  6  7  5  4 13  8  0  1  0  2  3  4  5  3  1  5  5 12  23   8
like    9 10  8  6  8  8 16  4  6 16  2  5  4  5 11 19 13  7  3 13  4  9 11   7  10
look    3  9  5  6  3  8  2  4  3  9  6  3  0  1  9  7  9  4  4  2  5  3  7   8   6
lord    5  2 10  0 17 15 33 18 20 13 13  6 11  1 12 25  1  0 22  5 10 11  7  10  53
love    5  7  6 12  7  2 31  3  4  8  5 23  2 18 36 20  8  3  4  2  2  5  9   9   5
made    5  4  2  5  2  4  6  5  6  5  1  2  2  0  2  7  4  5  3  1  0  3  5  22   3
make   11  5  6  3  7  5 17 12 10  7  6  4  6  3  9 18 10  6 10  7  6  6  9  20   9
man     0 15  9 16  7  9  7 13 14 28 10 14  4  3  8 16  7  8  8  4  7  5 15  18   9
may    11  5 12 10  6  4 23  9  4 12  6  9  6  2 14 13  6  5  7  9  3 13 11  23  10
men     1 22 14 18  7  3  6  5  2  1  3  4  0  2  7  6  3  0  7  5  1  3  5   3   1
mine    6  5  2  4  7  3  5  6  2  2  7  0  3  1  8 11  3  4  6  7  6  2 11   5   9
much    4  6  8  4 10  1  8  8  4  5  4  7  7  2  9 15  2  1  3  3  4  2  3  12   8
must    8  4  7  8 14  3 15 13  8 10  4  6  2  8  4  7  7  3 11  7  7  7 15  25  11
name    2  6  2  5  1  1  3  0  1  3  7  6  4  3  2  3  3  4  2  3  2  3  7   5   2
never   5  4  3  4  2  3  8  5  6  1 11  0  2  2  9 12  1  1  3  7  1  5  4   7   3
now    19 17  8 15  9 14 28 10 18 16  6  6  8  4 16 16  7  6 17 12 11 10 18  25  12
old     2  4  1  0  1  2 11 13 14 14  5  1  1  1 12  5  1  7  0  1  6  1  0  10   1
one     6  9 10  4  6  3  7  9 11  7  7  9  9  5 23 26  4  6  5  7  5  9 16  14  12
say     3  8 10 13  4  2  9  6  5  9  8 13  2  3 13 16  6  8 11  5 10  3 14  16  10
scene   7  4  4  4  3  5  6  4  7  7  3  3  1  1  4  3  8  4  6  3  9  5  4   8   1
see     5 12  5  8  8  4  8  6 10 18  8  9  3  2 16  8  7  8  3  6  7  2  7   6   6
shall  25  6 32 43 26 18 35 18 15 11 19 23  9  2 23 31 21  6 13 17 10  9 24  42   8
sir     1 12  8  2  1  0 32 32 11 27 12 29  7 13 20 40  1 10  8  3  7  7 48  64  16
speak   7  7  6 20  6  1 18 11  4  6 10  4  2  2  1 10  9  6  5  7  3  8  7   9  15
take    6  1  4  6  4  8 14 10 20 11  9  3  1  2  1 15  2  3  2  7  3  3  6  13   8
tell    5 12 11  7  4  3 14  5  5  2  4  4  2  2  6  4  3  0  1  4  2  0 10   7   1
thee   11  2 11  8 13 20 33 37 23 30 16  7  1  8 24 16 21 10  8 10 12  7  7  22   8
think   6  4 10  1  6  2  7  6  3  5  1  3  0  1  2  6  1  4  4  3  1  7 13  14   4
thou   21 18 20 17 26 35 72 38 39 44 21 10  1 12 35 35 21  7 16 22 23 16 27  46  23
thus    5  4  5  5  2  0  8  4  6  6  1  2  1  1  7 14  2  3  4  2  2  6  4   6   5
thy    12  5  8 18  8 15 42 18 36 28 34 12  3  7 33 20 12  5  8 14 13 14 12  18  11
till    2  6  3  5  4  4  7  5  3  3  1  2  2  1  2  4  5  1  5  2  6  1  3   5   9
time    7  9  4  4  3  6  6  6  3  6  8  5  2  0  4  7 10  6 11  8 11  4  6  13   9
Docs
Terms    102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
act      2   1   5   1   2   1   0   1   2   1   1   1   1   1   1   1   1   1   1
art      0   7   4   1   3   1   0   2   5   2   1   2  11   0   2   1   0   4   2
away     0   7  15   2   1   0   0   4  10  13   3   5   5   6   4   1   4   3   6
can      9   2  17  14   2   0   1   4   3   3   5   6  13   2   6   8  13   6   7
come    12  18  35  21  23   2   1  29  39  11   5  10  18   8  18   7  21   8  16
comes    2   7  12   4   4   2   0   5   4   3   1   3   6   2   5   3   4   3   1
enter    6  22  22  10  12   3   3  11  14  12   4   8  14   6  10   7  14  11   2
exeunt   5   9  12   7   5   2   3   6   8   5   2   2   4   5   4   4   5   8   4
exit     1  12   7   8   8   1   2  11  12   3   4  10  12   2   5   2   8   3   1
first    3   4   8   2   4   0   1   3   3   1   1   3   3   1   3   1   3   4   2
give     1  14  34   4  14   3   0   8   4   4   4   5   6   2   3   3   6   4   5
good    19  12  32  32  31  10   5  25  16  10   8   8   7  11   7  14  25  25   3
great    4   1   2   7   3   1   0   1   5   2   1   0   3   2   2   6   4   3   0
hand     1   9  10   1   6   2   0   2   3   5   0   1   2   2   4   5   1   1   6
hath    11  15  26   9  19   0   3   5  18   8   7   8   8   8   7  22  20  11  10
hear     3   5  17   8   5   1   1   4   4   1   3   2   2   8   5   3  13  12   7
heart    3   3  13   3   7   2   0   5   3   3   3   8   6   2   2   4   6  10   4
ill      8  10  34  12  13   1   2  16  27  10   2  11  16   1   0   1  13  14   1
know    13  10  19   8  18   1   0   6   9   7   5   4   9   1   5   7  15  18  11
leave    4   7  14   5   1   0   1   3   3   2   1   7   5   1   1   2   3   2   2
let     10  11  46  10  11   5   1  14  18   7   8   3  15   6   5   9  10  12  16
life     0   4  17   2   3   0   0   1   1   2   3   2   5   2   2   0   4   1   7
like    11   7  15   8  10   0   2  10   9   9   2   0  10   7   7   7  17  10   4
look     2   8  12   2   8   2   0   3   4   2   5   6  13   1   2   4   7   3   3
lord     3   7  35   0   2   0   0   3   0   0   3   5   2   9  10  15  29   5   8
love    11  14  33   8  14   0   0  14   3   7  23  23  37   7   9  12  27  20  12
made     4   4  10   3   5   1   0   4   1   3   2   3   7   1   1   1   8   5   3
make     9   6  19   8   8   2   1  12   7   2   3  10  15   1   7   6  16   7   3
man     13  16  29  15  13   2   3   7   7   8   9   5  10   9  13  15  19  29  14
may     10  11  16   9  11   1   3   5   8   2  11   4  10   2   4  11  16  15   7
men      6   7  12   3   4   0   0   4   4   1   2   2   5   1   2   0   4   7   6
mine     4   7  15   8  12   2   1   4   8   0   7   1   8   4   3   6   3   2   9
much    10  14  24   3   8   0   1   2   1   1   1   3   4   1   2  10   9   6   7
must     4  13  18   9   4   0   2   8   7   4  10   6  21   3   4   6   7   8   4
name     1   1   6   1  12   1   3   1   3   1   3   1   7   0   3   4   3   7   5
never    4  10  18   3  14   1   1   3   5   6   1   8  18   3   6   5  15   7   2
now     10  10  27  12  15   3   3  19  14  16   4  12  19  13  17   7  14  11   5
old      3  12   9   6   5   1   0   0  15   3   2   1   0   1   2   4   1   7   1
one     11  14  23   8  15   1   0   6  12   8   4  11  18   2   8   3  24  11   7
say     18  10  15  11  19   2   1   5  13   2   4   4   9   7   2   0  19  19   9
scene    4   9   8   5   3   1   1   3   7   5   3   2   3   2   2   3   4   5   2
see      7  14  24   9  13   0   4  11   5   7   3   8  14   3  12   7  11  10   2
shall   14  36  57  37  24   3  10  22  26   8  11  10  26   9  16  11  24  10  15
sir      5  17  17  50  41   8   7  28  36  14   0   1   2   0   1   3   2  13   9
speak    4   3  16   5   6   1   1   6  11   1   2   4  11   2   8   5   7   8   4
take     8  12  23   3   7   0   3   6   6   4   4   6   6   3   5   4  10   4   3
tell     7  11  12   8  11   1   2  10   6   6   1   1   8   5   1   9  15   7   0
thee    10  21  34   5  21   0   0  19   4   3  10  14  31   5   4   6   7  14  11
think    8   6  10   2   9   1   2   6   5   9   0   2   4   3   6   2  12  18   4
thou     5  29  69  11  21   0   0  12  11   7   8  27  66   8   7  19   7  14  14
thus     1   4   8   0   1   0   0   3   4   1   0   3   8   1   9   2   7   0   3
thy      2  18  39   3  18   2   0   9   6   3   6  20  25   3  11   3   3   9  10
till     2   1  10   2   2   0   1   2   3   6   1   4   5   0   3   3   8   6   0
time     8   3   7   3   4   1   0   2   7   5   4   1   1   0   4   4   4   2   1
Docs
Terms    121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
act      1   4   2   3   2   5   1   1   1   2   1   1   2   1   2   1   1   2   1
art      4   3   3   3   5   5   8   7   1   3   6   7   2   2   8   0   6  19  19
away     3   3   4  10   6   3   5   5   7   5   4   3   2   3   4   0   9   3   6
can      6   6  10   9   3   4   9   4  10   3   2  13   4   8   8   2  10  11   9
come    22  13  25  15  13  17  10  12  14   5  13  15   6  36  14   9  23  20  27
comes    6   5   5   5   6   3   1   9   4   0   3   2   3   6   5   0   6   5   7
enter   13   9  11  11   8  10  11  14  10   2  20  15  10  22  19  22  18  16  17
exeunt   8   5   4   8   5   3   4   5   7   3   7   6   6  12   5   9  11   6   4
exit     3   5  12   8   9   3   3   5   0   2   3   7   0  11  12   3   3   7  10
first    7  12   6  10   1   2   4   6   0   0   6  42   9   4   1   2   3   4   2
give    12   3  11  15   8   5   2   2   6  10   9  10   5  12   7  11   7   6  11
good    25  12  24  21  20  15  15  12   8   5  13  17  19  39  25  19  17  38  16
great    3   4  10   5   2   3   2   5   7   4   3   7   2   3   5   3   4   2   1
hand     8   0   6   9   7   5   5   4   8   3  14   7   5   6   7   2   4   6   9
hath    11  11  19   7  13  16  11  24  19   6  10  20   5  11  19  10  12  11  21
hear     6   6   1   7   7   4   3   4   0   1   6   8   6   3   9   1   5   6   6
heart    7   9   3   6   3   7   6   3  10   2  16  11   3   9   8   3   4   6  10
ill     12   9  14  22   4   9   4   8  13   4   8  17   6  20  10   5  14  22  21
know     8  13   9  17  11  16   3   6   6   3  10  11   2  14   7   1  10   7   7
leave    6   5   1  10   2   1   8   1   1   2   6   7   2   2   7   2   3   4   0
let     16  16  15  21  10  10  18   8   8   3  15  15   6   6  17  17  12   7  11
life     3   7   1   2   3   4  17   7   1   0   6   8   4   3  12   3   2   3   6
like     9   3   6  10   4   4  10  10   7   4  12  14   3  12   7   2   9  11  11
look     4   4   8  10   6   8   3   4   5   2   4   6   5  11   7   3   5   1  12
lord    14   5   1  35  30  20  12  22  25  13  15  47  19  97  32  34   2   7  12
love    18  15  19  29  10   5   4   9   6   1  12  14  18  11  18   3  34  53  29
made     1   4   4   6   3   3   4   6   5   3   5  20   3   5   8   3   7   6   5
make     4  12  12  12  12   5  15   7  14   4  12  13   7  14  10   5   7   4  17
man     26   8  11  10  11   8   5   4   8   4  12  21   6  11   3   2  11  19  23
may      6  14  11  15  12   8   9   8   9   9  14  23   4  12  12   5   6  12  15
men      9   5   7   4   4   5   6  13   9   4   6   5   3   8   5   5  10   1   6
mine    11   5   3   6   6   1   9   5   6  13  10  13   9   8  11   1   7  12   7
much     3   5   8  12   7   2   3   6   6   3   2   9   8   5   3   5   9  10  10
must    10  19   9   7  11  13  10  12  13   4  11  12   2   7   8   3   9   9   9
name     2   1   3   4   2   1   9   7   5   6   2   9   0   2  11   5   2  15   6
never   10   7  11   8   7   7   8   8   2   2   7  15   4   8   5   3   4   4   5
now     12  16  27  25  24  14  10  22   7   7  14  28   8  25  25   6  21  17  19
old      9   4   2   1   1   1   7   6   3   2   6   2   4   0   4   0  13   9   5
one     13   8  15   9  10  13  12   6   7   6   9   9   6   5  13  11  16  15  19
say      7  11   9  21  15  12   9   7  12   8  12  13   5  19  21   4  13  15   9
scene    4   4   3   4   3   2   5   4   5   1   7   5   5   7   7   5   5   6   5
see      4   7   7  16  10   4   6  10   8   6  11  10   8  14   5   2  10   6   7
shall   22  18  22  25  20  11  28  14  19  22  19  17  10  24  35  14  28  15  33
sir     10  15  14  10  13   4   0   4   1   1   5   4   4   3   8   8  16  11  12
speak    7   8   8  11   7  17   5   5  11   5   8   5   2   6  10   3   2  10  13
take     4   5   1  12   6   5  12   4   4   2   7  17   5   9   8   2  11   6  12
tell     8   5   4   6   5   2   1   3   6   0   6  14   2  17  13   3  11  16  11
thee    35  16  15  16   8  21  23  12  11  11  28  47   3   8  42  19  17  38  39
think   11  10   9  21  16   8   2   3   3   1   5   8   3   9   5  10   8   2   6
thou    30  35  20  32  21  33  41  28  25  28  55  77   5  22  88  12  37  77 104
thus     7   8   8   3   5   6   5   5   8   2   8   5   1   9  10   5   3   2   2
thy     27  14   6  23   6  30  49  36  29  12  47  78  13   8  76  38  13  48  53
till     5   3   6   2   0   1   2   1   5   4   7   5   1   3   9   0   3   8   5
time     3   9   5   9   3   2   6   8   5   4  13  10   2  11  12   7   5   3   7
Docs
Terms    140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
act      2   1   1   1   1   1   1   2   2   1   1   2   1   1   1   1   2   1   1
art      3   8   2   1   1   5   2  10   7   2   2   7   9   3   2  19   3   1   4
away     1   4   1   0   3  11   6   2   1   1   3   1   4   3   1  10   1   5  11
can      1   9   5   7   3   1   2   5  10   5   3   0   6   3   9   4   3   5   5
come    12  16  12   7  10  27  25  16   8   4  11   1  11   7   4   2   9   5  12
comes    4   4   6   5   6   4   4   0   3   0   1   1   7   6   2   2   0   2   2
enter   15  15   7   5   6  18   4   8   5   8  10   2  14   9  15   8  11   7  11
exeunt   8   4   3   2   5   9   7   5   2   4   2   2   6   6   5   3   3   8   6
exit     7   5   3   6   3  10   9   5   1   3   2   4  10   3  13   3   2   1   3
first    0   0   8   5   2   5   4   6   3   2   1   4  16   0  38  12  20   3   1
give    13  10   3   6   5   5   2   9   7   8   4   2  12   5   3  11   3  10   2
good     5   6  24  15   4  19  12  15  12   9   3   5  21  12  20   6   3  11   5
great    1   1   8   3   1   0   3   4   2   2   3   1   6   4   5   5   6   3   3
hand     1   5   4   3   1   5   2   2   2   4   3   0   3   4   0   0   1   2   6
hath    11   9   5   5   6   8   6   6   9   8   1   2   5   4   6   7   7  10  10
hear     3   2   5   2   6   5   2   9   4   1   3   2   6   3   4   3   1   1   3
heart    6   0   3   0   1   7   1   4   1   3   1   1   9   3   7   2   2   6  11
ill     15  12  11  15   9  13   8  11  17  18   4  11  11   2  11  15   7   4   3
know     7   4  15   9   8  13   3   8   4   2   3   6   8   5   9  11   5   5  12
leave    2   4   7   3   6   3   4   1   1   1   4   0   0   2   1   2   2   4   3
let      8   7   9   8   9  15   1   3   5   6   5   8  11   2  12  18  10  16  20
life     8   3   4   0   2   8   4   1   3   3   4   4   3   0   4   5   1   5   6
like     9   0   2   9   6  18   3   7  15  10   5   5  13   5   9  12   7   3   9
look     8   5   4   5   2   6   1   1   2   1   4   5   6   2   4   5   2   3   6
lord     5   5   4   0   1   1   4   3   8   9   1   5  78  26  96   9   9  27   6
love    13   7  21   9   5  17   6   3   1   2   5   1   8   2   4  10  10   5   9
made     1   1   1   3   1   6   2   8   3   2   1   2   2   2   6   3   2   1   7
make     7   5   7   8   4  14   1  16  10   3   7   5  10   2  10  13  10   9  12
man      2  16  14   5   7  10   2   5  14   4   1   4  20   3  16  21   7   4   1
may     10   4  16   8   6  11   6   4   3   4   5   1   6   3  13  16   4   4  13
men      1   3   2   3   0   2   0   2   5   5   0   2  11   4  11  20  11   2   0
mine     2   1   5   7   5   5   4  13   7   7   6   8   6   5  10   2   3  13   4
much     5   3   1   3   3   5   2   5   5   5   1   3  12   3  12   5   2   1   5
must     7   6   4  10   9   4   2   7   3   4   3   8   6   4  12   5   6   6   7
name     0   1   3   6   1   7   7   3   1   3   0   0   1   1   0   2   3   5   2
never    3   2   3   3   7   8   7   3   3   3   4   2   3   1   2  12   1   4   4
now     17   4  11  17  11  22  15  22  19  13   8  16  13   6  24  10   7   5  16
old      1   4   7   4  10   9   5   2   1   2   1   1  12   1   2   2   1   1   1
one      5   6   9   5   6  15   7   8   5   9   2   9  14   6  11  14   5   5   3
say     12   3   9   8   6  22   8   8   6   8   3   6   5   3   4   5   5   3   8
scene    6   3   2   1   2   5   2   3   2   3   1   1   3   2   6   3   4   2   4
see      6   8  13  11   4   9   8   3   3   1   0   1   7   2   8   8   3   3  12
shall   25   7  23  15  12  36  10   9  13  11  14  14  11   5   8   7  15  10  11
sir     12   5  41  12  12  48  26  18  17   3   4  18  12   4  18   1   4   3   1
speak    3   0   3   4   1   5   1   8   7   3   1   1   4   6   6   2   9   4   8
take     4   7   8   4   9  17   2   6   6   5   4   7   5   1   7   9   8   3   5
tell     4   3  10   7   3  14   5   5   4   3   1   2   2   2   6   2   6   3   4
thee    14  30  12  15   7  30   8  45  24  13   8   8  25   6  15  76  14  20  22
think    1   4   3   2   1   5   3   3   1   1   2   5   4   4   8   2   0   1   3
thou    29  30  11  21   4  53  14  84  29  36  14  22  29  14  12 119  20  24  39
thus     0   2   6   4   6   7   3   3   3   2   1   1   2   3   0   6   3   6   0
thy     17  33   3  14   7  32  20  31  17  15  22  11  21   2   9  75  27  35  48
till     2   4   5   1   3   4   1   4   2   1   3   2   4   2   0   3   3   7   6
time    12   5   8   1   2   3   1   8   5   6   1   3   5   4  10   3   6   0   1
Docs
Terms    159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
act      1   1   1   5   4   6   5  10   2   1   1   2   2   1   1   1   1   1   1
art      6   3   9   1  13   1   5   8   4   7   6   5   3   2   5   6   4   2   5
away     4   3   6   2   0   1   1   4  10   5   6   0   2   6   4   6   3   1   2
can      5  10   6   7   5   6   6   3   7  10  16   1   8   2   8  19   4   2   3
come    12  20  24  12  14  20  18  27   7  23  26   8   7   5  14   6   6  10   5
comes    2   3   3   9   3   3   6   6   6   5   6   2   4   0   4   2   1   3   1
enter    6   9  10   7  10   6  12  37  12  11  13   8   8   5  12   7  11   8   3
exeunt   4   5   5   3   3   5   9  14   4   4   8   3   2   3   6   2   5   3   3
exit     3   4   3   4   7   9   4  20  10  10  11   4   5   5   8   5   4   4   2
first    0   2   5   3   2   4   4   1   2   3   5   2   3   0   3   1   8   4   3
give     5  10   7   9   2  11  18   8  11  10  10   3   5   3   6   4   5   4   7
good     7  13  11  19   8  16  18  17  24  18  18  14   6   8  13  15  13   3  15
great    1   3   4  14  12  12  17   7   8   4   6   3   4   2   3   0   1   1   4
hand    23   3  16   7   1   3  15   2   9   6   5   4   5   1   1   0   0   2   3
hath    13  13  12  22  10  10   5  13   9   5   7   2  13   4  19  19   6   4   3
hear     4   1   6   4   4   3   3   6   4   2   3   1   3   3   2   2   7   2   2
heart    9   6   6  10   2   5  14   7   7   7   7   1   2   4   2   2   6   2   6
ill      9   9  11  15  10  14  23  26  16   8  22   9   5   6  16  12   8   7   8
know     1  13  13   9  10  15  12   2   7  19  14   1   8   2  14   8  13   1   7
leave    3   2   2   2   1   7   3   5   3   5   5   1   1   2   7   3   2   3   1
let     17  13  19  14  14  13  20  14  19  21  17   7   8   9   5   6   5   6  11
life     8   4   4   2   2   2   7   7   4   6   1   1   4   1   1   5   0   1   4
like    11   7  14  13  10  18   8  10  15  10  13   2   3   6  20   1   1   2  11
look     5   6   4  13   4   1   2   7   4   2   4   0   1   2   7   5   3   5   2
lord     4  18   8   6  17  42  29  18  12   5   4   0  16   4   6  15   0   4  23
love     3   3   2  13   0  33  14   7  19  31  12   0  13  35  54  24  24  23   4
made     6   6   5   3   0   6   2   1   1   3   2   0   7   2   6   3   3   2   4
make    11   4   9  11   8  11   6   2  10  15  15   3   5   2  11   5   8   6   8
man      8   6   8  34   9  10   8  11  19   9  21  10   4   1   8   8   8   4   9
may      4  12   7  12   7   9  10   4  10   8   9   4   7   5   5  15   4   2  11
men      4   5   5   7   2   8   1   1   2   5   2   1   1   2   3   1   1   6   1
mine    10   4   4   2   2   2   5   6   7   4   4   4   4   4   9   6   6   4  16
much     2   4   2   6  11   8   4   9   7  11  10   0   9   5  11  10   9   4   4
must     6  10   5  12   8  12  15   6   4  12   9   1   3   3   9   9   4   3  12
name     4   3   3   2   1   2   7   2   5   4   4   1   1   6   4   0   1   1   4
never    4   8   3   2   3   3   5   4   5   8   6   4   6   3   7   3   0   2   5
now     17  18  15  13  12  22  19  37  13  20  20   7  11  13  26  16  11   9  13
old      2  10   2   3   3   1   4   2   3   4   1   2   2   0   1   1   0   1   1
one      5   7  10  18   4  12  10  13  15  13  15   2  15   5  14   7  13  11  17
say      5  12  11  12  12   9   6  11  12  10   6  12   6  10   7   9   8   2  18
scene    2   4   3   4   3   3   5  10   6   5   4   3   1   4   7   2   4   4   2
see      7  22   7  14   5  13  11   7  11  11  14   1   5   9  10   2   5   3   6
shall   19  22  18  27  19  42  22  18  15  22  19   6  13  12  14  13  10   3  11
sir      1  12   0   4   2  16  10   2  67  88 127  47  35  13  37  16  18  10  13
speak    6   1  14  10   8  11   5   5  11   2   6   1   5   0   8   2   5   1   5
take     2   6   8   4   3   3   8  13  11   5   6   1   4   7   6   3   7   2   4
tell     4   8   9  16  11   2  15  11   8   6   5   6   3   2   9   6   4   1   4
thee    21  19  33   5  15   2  46  21  16  20  28  15  10  12  11  26  22  12  10
think    3   2   3   8   7   2   6   5  11   6  11   2   4   9   7   5  11   3   8
thou    37  29  44  10  40   9  39  49  24  29  31  25  21  24  40  30  27  21  26
thus     5  11   4   2   9   6   5   5   1   5   2   5   2   6   4   2   2   1   2
thy     54  22  48  17  16   4  29  34  23  24  30  15  12  22  19  24  22  12  11
till     3   3   2   0   3   6   4   5   5   0   4   1   2   2   4   2   0   0   1
time     2   3   2   3   2   8   9   2   3   7   8   1   5   8   7   6   2   2   2
Docs
Terms    178 179 180 181 182
act      2   2   1   2   0
art      4   5   7   7   5
away     5   4   4   3   0
can      7   5  15   5   0
come    25   7  40  10   0
comes    0   3   2   6   1
enter    7   7   8   8   0
exeunt   5   5   3   5   0
exit     5   2  10   0   0
first   18   7   3  13   0
give     5   1  16   8   0
good    28  10  29  20   1
great    6   8   6   4   0
hand     2   2   9   8   3
hath     8   7  16   8   5
hear     3   3  10   5   1
heart    2   7   9   2   6
ill     21  15  16   9   1
know     8   6  27   7   1
leave    6   1   7   3   2
let      7   3  22   9   2
life     8  10   6  11   1
like     7   9  12  13   4
look     3   8   6   9   1
lord    29  11   6  17   0
love     1   4  14   1   9
made     4   3  12   3   6
make     5   5  16  12   4
man      2   5  28   6   2
may     10   4  27   9   5
men      1   1   7   2   2
mine     7   4  10   7   7
much     6   9  11  12   3
must     5   3  28   3   5
name     0   4   6   1   0
never    5   3   8   7   2
now     12  14  38  27   4
old      1   4   8   7   2
one     11   8  23  17   7
say     12   6  21  16   3
scene    3   3   6   3   0
see     10  12  19  14   2
shall   26  16  45  13   1
sir     11   7  63  19   0
speak    4   5  12  10   0
take    11   7  15   6   1
tell     2   2   9   2   2
thee     6  13  30   4   1
think    1   2  23   9   1
thou    24  17  40  20   5
thus     6   4   4   6   2
thy     12  17  21  18   1
till     1   1   6   6   3
time     4   3  17   8   1
[ reached getOption("max.print") -- omitted 7 rows ]
object.size(TDM.common)
185248 bytes
> object.size(TDM.dense)
103136 bytes
> install.packages("wordcloud")
>
> library(wordcloud)
>
> library(RColorBrewer)
> palette <- brewer.pal(9,"BuGn")[-(1:4)]
> wordcloud(rownames(TDM.dense), rowSums(TDM.dense), min.freq = 1, color = palette)
> 

> library(reshape2)
>
> TDM.dense = melt(TDM.dense, value.name = "count")
Terms Docs count
1   act    1     1
2   art    1    51
3  away    1    18
4   can    1    44
5  come    1    15
6 comes    1     2
> library(ggplot2)
>
> ggplot(TDM.dense, aes(x = Docs, y = Terms, fill = log10(count))) +
geom_tile(colour = "white") +