# by default, only the result of the last expression in a cell is displayed after evaluation.
# the following forces display of *all* self-standing expressions in a cell.
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
This list supports the mutable sequence operations in addition to the common sequence operations.
l = [1, 2, 1, 1, 2, 3, 3, 1] # [ ] comma seperated defines a list
# ( ) comma seperated defines a tuple IMMUTABLE
l
[1, 2, 1, 1, 2, 3, 3, 1]
len(l)
8
l[5]
3
l[1:-1]
# [1, 2, 1, 1, 2, 3, 3, 1]
0 1 2 3 4 5 6 7
-2 -1
[2, 1, 1, 2, 3, 3]
l + ['hello', 'world'] # addition operator creates a new list
[1, 2, 1, 1, 2, 3, 3, 1, 'hello', 'world']
l # `+` does *not* mutate the list!
[1, 2, 1, 1, 2, 3, 3, 1]
l * 3
l
[1, 2, 1, 1, 2, 3, 3, 1, 1, 2, 1, 1, 2, 3, 3, 1, 1, 2, 1, 1, 2, 3, 3, 1]
[1, 2, 1, 1, 2, 3, 3, 1]
sum = 0
for x in l:
sum += x
sum
14
14 in l
3 in l
False
True
l[15]
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-14-4ee68859c076> in <module> ----> 1 l[15] IndexError: list index out of range
k=[]
len(k)
4 in k
0
False
m=['matt',"john","bauer"]
for a in m:
print(a)
matt john bauer
m=['matt',"john","bauer"]
for a in m:
for x in a:
print(x)
m a t t j o h n b a u e r
l = list('hell')
l
['h', 'e', 'l', 'l']
m=list(range(2,10,2))
m
[2, 4, 6, 8]
l.append('o')
l
['h', 'e', 'l', 'l', 'o']
l
l.append(' there')
l
['h', 'e', 'l', 'l', 'o', ' there']
l.append([1,2,3]) # doesn't iterate the argument
l
['h', 'e', 'l', 'l', 'o', ' there', [1, 2, 3]]
m=['h', 'e', 'l', 'l', 'o']
n=m+list(' there')
n
['h', 'e', 'l', 'l', 'o', ' ', 't', 'h', 'e', 'r', 'e']
del l[-1]
l
['h', 'e', 'l', 'l', 'o', ' there']
l.extend(' there') #will iterate the argument
l
['h', 'e', 'l', 'l', 'o', ' there', ' ', 't', 'h', 'e', 'r', 'e']
l[2:7]
['l', 'l', 'o', ' there', ' ']
del l[2:7]
l
['h', 'e', 't', 'h', 'e', 'r', 'e']
l=[]
l
[]
# write code to find an exact sequence"key" of items in a list
# find '111' in '1010201010101110' found
# find '111' in '10102010101011110' not found
# iterate the string, look for the first char in "key"
# if found, keep iterating to find the restr of the key
# oR reset the key index to the beginnign
import random
flips=''
for j in range(100):
flips=flips+str(random.randint(0,1))
flips
key='111'
foundAt=-1
#for x in flips:
for i in range(0,len(flips)):
if flips[i] == key[0]:
for j in range(1,len(key)): # other elements at indexes i+j
if flips[i+j] != key[j]:
break
# if a finish the for loop what do i KNow I found the key
# but the next char MUST NOT MATCH to be a successful find
if flips[i+len(key)] != key[len(key)-1]:
foundAt=i
break # I found it
else:
print('not found')
print(foundAt)
'0000011111000011010011001101110100101101110011011110100110110100101110111011111100010001111010111111'
7
# 4 -5 4 -2 1 -1 2 -2 insytead pre-prcess the string to get lengths of "runs"
# call 0 postive and 1 negative
flips=''
for j in range(100):
flips=flips+str(random.randint(0,1))
flips
key='111'
counterList=[]
counter=1
for i in range(0,len(flips)):
if i<len(flips)-1 and flips[i]==flips[i+1]:
counter+=1
else: # we ended a run
# print(counter)
if (flips[i]=='1'):
counter*=-1
counterList.append(counter)
counter=1
counterList
counterList.index(-3)
'1010111010001010000001111100010000101010101101011111010111010010100000010111100101101101001111101111'
[-1, 1, -1, 1, -3, 1, -1, 3, -1, 1, -1, 6, -5, 3, -1, 4, -1, 1, -1, 1, -1, 1, -1, 1, -2, 1, -1, 1, -5, 1, -1, 1, -3, 1, -1, 2, -1, 1, -1, 6, -1, 1, -4, 2, -1, 1, -2, 1, -2, 1, -1, 2, -5, 1, -4]
4
# create a list [1,2,3,4,5] or lst("matt")
# alternate way, is List comprehensions
[x for x in range(10)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[2*x+1 for x in range(10)] # odd numbers
[1, 3, 5, 7, 9, 11, 13, 15, 17, 19]
[(radius, side) for radius in range(1,6) for side in range(1,4) ]
#nested loop in list comprenhension
#create a list of tuples
[(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3), (4, 1), (4, 2), (4, 3), (5, 1), (5, 2), (5, 3)]
# What circles of radius 1 to 5 have more area than squares with sides 1 to 5?
[(radius, side) for radius in range(1,6) for side in range(1,4) if 3.14159*radius*radius > side*side ]
[(1, 1), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3), (4, 1), (4, 2), (4, 3), (5, 1), (5, 2), (5, 3)]
adjs = ('hot', 'blue', 'quick')
nouns = ('table', 'fox', 'sky')
phrases = []
for adj in adjs:
for noun in nouns:
phrases.append(adj + ' ' + noun)
phrases
['hot table', 'hot fox', 'hot sky', 'blue table', 'blue fox', 'blue sky', 'quick table', 'quick fox', 'quick sky']
[adj + ' ' + noun for adj in adjs for noun in nouns]
['hot table', 'hot fox', 'hot sky', 'blue table', 'blue fox', 'blue sky', 'quick table', 'quick fox', 'quick sky']
[adj+' '+noun for adj in adjs for noun in nouns if len(adj)>len(noun)]
['blue fox', 'blue sky', 'quick fox', 'quick sky']
A set is a data structure that represents an unordered collection of unique objects (like the mathematical set).
s = {1, 2, 1, 1, 2, 3, 3, 1}
s
{1, 2, 3}
s[0]
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-4-c9c96910e542> in <module> ----> 1 s[0] TypeError: 'set' object is not subscriptable
t = {2, 3, 4, 5}
4 in t
True
s.union(t) # creates a new set
s
t
{1, 2, 3, 4, 5}
{1, 2, 3}
{2, 3, 4, 5}
s.difference(t)
s
t
{1}
{1, 2, 3}
{2, 3, 4, 5}
s.intersection(t)
s
t
{2, 3}
{1, 2, 3}
{2, 3, 4, 5}
A dictionary is a data structure that contains a set of unique key → value mappings.
d = { # key : value pairs KEYS UNIQUE
'Superman': 'Clark Kent',
'Batman': 'Bruce Wayne',
'Spiderman': 'Peter Parker',
'Ironman': 'Tony Stark'
}
d
{'Superman': 'Clark Kent',
'Batman': 'Bruce Wayne',
'Spiderman': 'Peter Parker',
'Ironman': 'Tony Stark'}
d['Ironman']
'Tony Stark'
d['Ironman'] = 'James Rhodes'
d
{'Superman': 'Clark Kent',
'Batman': 'Bruce Wayne',
'Spiderman': 'Peter Parker',
'Ironman': 'James Rhodes'}
d['pythonGuy']="micahel lee"
d
{'Superman': 'Clark Kent',
'Batman': 'Bruce Wayne',
'Spiderman': 'Peter Parker',
'Ironman': 'James Rhodes',
'pythonGuy': 'micahel lee'}
for x in d: # default iterator is keys only
print(x)
Superman Batman Spiderman Ironman pythonGuy
for x in d.items(): # key value pairs
print(x)
('Superman', 'Clark Kent')
('Batman', 'Bruce Wayne')
('Spiderman', 'Peter Parker')
('Ironman', 'James Rhodes')
('pythonGuy', 'micahel lee')
for x in d.values():
print(x)
Clark Kent Bruce Wayne Peter Parker James Rhodes micahel lee
d['javaguy']
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-21-68b27129b8fd> in <module> ----> 1 d['javaguy'] KeyError: 'javaguy'
d.get('javaguy') # if a get fails on invalid index, you geta None returned
d.get('javaguy', "matt") #if get fails, what is default returned
'matt'
'Batman' in d
True
del d['Batman']
d
{'Superman': 'Clark Kent',
'Spiderman': 'Peter Parker',
'Ironman': 'James Rhodes',
'pythonGuy': 'micahel lee'}
a=[]
for i in range(5):
a.append(i*i)
a
[0, 1, 4, 9, 16]
[i*i for i in range(5)] # list comprehension is faster
[0, 1, 4, 9, 16]
{e:2**e for e in range(0,100,10)} # { key:value iteration and possible condition}
{0: 1,
10: 1024,
20: 1048576,
30: 1073741824,
40: 1099511627776,
50: 1125899906842624,
60: 1152921504606846976,
70: 1180591620717411303424,
80: 1208925819614629174706176,
90: 1237940039285380274899124224}
{x:y for x in range(3) for y in range(10)} # keys are unique
# 0 0 0 1 0 2 0 3 04 ... 0 9
{0: 9, 1: 9, 2: 9}
sentence = 'a man a plan a canal panama'
sentence.split()
['a', 'man', 'a', 'plan', 'a', 'canal', 'panama']
sentence = 'a man a plan a canal panama'
{w:w[::-1] for w in sentence.split()}
{'a': 'a', 'man': 'nam', 'plan': 'nalp', 'canal': 'lanac', 'panama': 'amanap'}
import urllib.request
peter_pan_text = urllib.request.urlopen('https://www.gutenberg.org/files/16/16-0.txt').read().decode()
peter_pan_text[:100] # first 100 letters
'*** START OF THE PROJECT GUTENBERG EBOOK PETER PAN ***\n\n\n\n\nPeter Pan\n\n[PETER AND WENDY]\n\nby J. M. Ba'
peter_pan_words = peter_pan_text.split()
peter_pan_words[:100]
['***', 'START', 'OF', 'THE', 'PROJECT', 'GUTENBERG', 'EBOOK', 'PETER', 'PAN', '***', 'Peter', 'Pan', '[PETER', 'AND', 'WENDY]', 'by', 'J.', 'M.', 'Barrie', '[James', 'Matthew', 'Barrie]', 'A', 'Millennium', 'Fulcrum', 'Edition', 'produced', 'in', '1991', 'by', 'Duncan', 'Research.', 'Note', 'that', 'while', 'a', 'copyright', 'was', 'initially', 'claimed', 'for', 'the', 'labor', 'involved', 'in', 'digitization,', 'that', 'copyright', 'claim', 'is', 'not', 'consistent', 'with', 'current', 'copyright', 'requirements.', 'This', 'text,', 'which', 'matches', 'the', '1911', 'original', 'publication,', 'is', 'in', 'the', 'public', 'domain', 'in', 'the', 'US.', 'Contents', 'Chapter', 'I.', 'PETER', 'BREAKS', 'THROUGH', 'Chapter', 'II.', 'THE', 'SHADOW', 'Chapter', 'III.', 'COME', 'AWAY,', 'COME', 'AWAY!', 'Chapter', 'IV.', 'THE', 'FLIGHT', 'Chapter', 'V.', 'THE', 'ISLAND', 'COME', 'TRUE', 'Chapter', 'VI.']
peter_pan_words.index('Peter')
10
peter_pan_words.count('Peter')
235
# create a dictionary for each word and how many times it appears
{ w : peter_pan_words.count(w) for w in peter_pan_words }
{'***': 4,
'START': 1,
'OF': 2,
'THE': 27,
'PROJECT': 2,
'GUTENBERG': 2,
'EBOOK': 2,
'PETER': 4,
'PAN': 2,
'Peter': 235,
'Pan': 12,
'[PETER': 1,
'AND': 1,
'WENDY]': 1,
'by': 155,
'J.': 1,
'M.': 1,
'Barrie': 1,
'[James': 1,
'Matthew': 1,
'Barrie]': 1,
'A': 19,
'Millennium': 1,
'Fulcrum': 1,
'Edition': 1,
'produced': 1,
'in': 623,
'1991': 1,
'Duncan': 1,
'Research.': 1,
'Note': 1,
'that': 553,
'while': 26,
'a': 900,
'copyright': 3,
'was': 897,
'initially': 1,
'claimed': 2,
'for': 355,
'the': 2150,
'labor': 1,
'involved': 1,
'digitization,': 1,
'claim': 1,
'is': 318,
'not': 357,
'consistent': 2,
'with': 312,
'current': 1,
'requirements.': 1,
'This': 26,
'text,': 1,
'which': 116,
'matches': 1,
'1911': 1,
'original': 1,
'publication,': 1,
'public': 4,
'domain': 1,
'US.': 1,
'Contents': 1,
'Chapter': 34,
'I.': 3,
'BREAKS': 2,
'THROUGH': 2,
'II.': 2,
'SHADOW': 2,
'III.': 2,
'COME': 6,
'AWAY,': 2,
'AWAY!': 2,
'IV.': 2,
'FLIGHT': 2,
'V.': 3,
'ISLAND': 2,
'TRUE': 2,
'VI.': 2,
'LITTLE': 2,
'HOUSE': 2,
'VII.': 2,
'HOME': 6,
'UNDER': 2,
'GROUND': 2,
'VIII.': 2,
'MERMAIDS’': 2,
'LAGOON': 2,
'IX.': 2,
'NEVER': 2,
'BIRD': 2,
'X.': 2,
'HAPPY': 2,
'XI.': 2,
'WENDY’S': 2,
'STORY': 2,
'XII.': 2,
'CHILDREN': 2,
'ARE': 2,
'CARRIED': 2,
'OFF': 2,
'XIII.': 2,
'DO': 2,
'YOU': 2,
'BELIEVE': 2,
'IN': 2,
'FAIRIES?': 2,
'XIV.': 2,
'PIRATE': 2,
'SHIP': 2,
'XV.': 2,
'“HOOK': 2,
'OR': 2,
'ME': 2,
'THIS': 2,
'TIME”': 2,
'XVI.': 2,
'RETURN': 2,
'XVII.': 2,
'WHEN': 2,
'WENDY': 2,
'GREW': 2,
'UP': 2,
'All': 17,
'children,': 6,
'except': 19,
'one,': 15,
'grow': 8,
'up.': 14,
'They': 101,
'soon': 26,
'know': 64,
'they': 462,
'will': 78,
'up,': 17,
'and': 1322,
'way': 58,
'Wendy': 199,
'knew': 63,
'this.': 6,
'One': 9,
'day': 11,
'when': 151,
'she': 465,
'two': 36,
'years': 3,
'old': 22,
'playing': 10,
'garden,': 1,
'plucked': 2,
'another': 24,
'flower': 2,
'ran': 17,
'it': 463,
'to': 1134,
'her': 360,
'mother.': 9,
'I': 253,
'suppose': 7,
'must': 59,
'have': 243,
'looked': 33,
'rather': 40,
'delightful,': 1,
'Mrs.': 72,
'Darling': 93,
'put': 40,
'hand': 32,
'heart': 13,
'cried,': 42,
'“Oh,': 24,
'why': 13,
'can’t': 24,
'you': 351,
'remain': 4,
'like': 86,
'this': 153,
'ever!”': 1,
'all': 202,
'passed': 12,
'between': 13,
'them': 165,
'on': 313,
'subject,': 2,
'but': 373,
'henceforth': 2,
'You': 24,
'always': 50,
'after': 44,
'are': 165,
'two.': 3,
'Two': 2,
'beginning': 6,
'of': 807,
'end.': 3,
'Of': 36,
'course': 55,
'lived': 6,
'at': 305,
'14,': 1,
'until': 21,
'came': 71,
'mother': 33,
'chief': 3,
'one.': 11,
'She': 109,
'lovely': 14,
'lady,': 7,
'romantic': 4,
'mind': 11,
'such': 55,
'sweet': 7,
'mocking': 4,
'mouth.': 5,
'Her': 10,
'tiny': 5,
'boxes,': 1,
'one': 168,
'within': 7,
'other,': 5,
'come': 50,
'from': 131,
'puzzling': 2,
'East,': 1,
'however': 3,
'many': 24,
'discover': 3,
'there': 111,
'more;': 2,
'mouth': 15,
'had': 497,
'kiss': 8,
'could': 138,
'never': 65,
'get,': 1,
'though': 46,
'was,': 14,
'perfectly': 6,
'conspicuous': 1,
'right-hand': 2,
'corner.': 2,
'The': 135,
'Mr.': 46,
'won': 1,
'this:': 2,
'gentlemen': 3,
'who': 130,
'been': 135,
'boys': 61,
'girl': 10,
'discovered': 6,
'simultaneously': 2,
'loved': 13,
'her,': 37,
'house': 24,
'propose': 1,
'Darling,': 10,
'took': 24,
'cab': 2,
'nipped': 2,
'first,': 7,
'so': 196,
'he': 864,
'got': 33,
'her.': 41,
'He': 163,
'innermost': 1,
'box': 2,
'kiss.': 3,
'about': 99,
'box,': 2,
'time': 81,
'gave': 36,
'up': 110,
'trying': 10,
'thought': 69,
'Napoleon': 1,
'it,': 60,
'can': 40,
'picture': 1,
'him': 186,
'trying,': 2,
'then': 67,
'going': 31,
'off': 31,
'passion,': 1,
'slamming': 1,
'door.': 4,
'used': 14,
'boast': 2,
'only': 82,
'respected': 1,
'him.': 66,
'those': 17,
'deep': 2,
'ones': 13,
'stocks': 3,
'shares.': 1,
'no': 127,
'really': 44,
'knows,': 1,
'quite': 62,
'seemed': 23,
'know,': 11,
'often': 16,
'said': 218,
'were': 243,
'shares': 1,
'down': 50,
'would': 209,
'made': 48,
'any': 36,
'woman': 7,
'respect': 3,
'married': 6,
'white,': 3,
'first': 64,
'kept': 12,
'books': 1,
'perfectly,': 1,
'almost': 34,
'gleefully,': 3,
'as': 303,
'if': 121,
'game,': 3,
'much': 29,
'Brussels': 1,
'sprout': 1,
'missing;': 1,
'whole': 14,
'cauliflowers': 1,
'dropped': 12,
'out,': 15,
'instead': 13,
'pictures': 1,
'babies': 4,
'without': 33,
'faces.': 1,
'drew': 11,
'should': 45,
'totting': 2,
'Darling’s': 7,
'guesses.': 2,
'John,': 21,
'Michael.': 6,
'For': 25,
'week': 6,
'or': 61,
'doubtful': 2,
'whether': 18,
'be': 229,
'able': 10,
'keep': 12,
'feed.': 1,
'frightfully': 10,
'proud': 7,
'very': 63,
'honourable,': 1,
'sat': 34,
'edge': 3,
'bed,': 11,
'holding': 5,
'calculating': 1,
'expenses,': 1,
'imploringly.': 2,
'wanted': 14,
'risk': 1,
'what': 104,
'might,': 1,
'his': 455,
'way;': 1,
'pencil': 1,
'piece': 4,
'paper,': 2,
'confused': 2,
'suggestions': 1,
'begin': 1,
'again.': 22,
'“Now': 8,
'don’t': 54,
'interrupt,”': 1,
'beg': 2,
'“I': 159,
'pound': 2,
'seventeen': 1,
'here,': 6,
'six': 9,
'office;': 1,
'cut': 13,
'my': 69,
'coffee': 1,
'office,': 3,
'say': 36,
'ten': 8,
'shillings,': 1,
'making': 10,
'nine': 12,
'six,': 2,
'your': 71,
'eighteen': 1,
'three': 24,
'makes': 6,
'seven,': 2,
'five': 3,
'naught': 2,
'cheque-book': 3,
'eight': 3,
'seven—who': 1,
'moving?—eight': 1,
'dot': 1,
'carry': 9,
'seven—don’t': 1,
'speak,': 2,
'own—and': 1,
'lent': 1,
'man': 33,
'door—quiet,': 1,
'child—dot': 1,
'child—there,': 1,
'you’ve': 1,
'done': 10,
'it!—did': 1,
'seven?': 1,
'yes,': 5,
'seven;': 1,
'question': 7,
'is,': 6,
'we': 130,
'try': 2,
'year': 5,
'seven?”': 1,
'“Of': 8,
'can,': 1,
'George,”': 5,
'cried.': 18,
'But': 65,
'prejudiced': 2,
'Wendy’s': 26,
'favour,': 1,
'grander': 1,
'character': 2,
'“Remember': 1,
'mumps,”': 1,
'warned': 3,
'threateningly,': 1,
'went': 48,
'“Mumps': 1,
'pound,': 1,
'down,': 7,
'daresay': 2,
'more': 61,
'thirty': 2,
'shillings—don’t': 1,
'speak—measles': 1,
'five,': 1,
'German': 1,
'measles': 2,
'half': 8,
'guinea,': 1,
'fifteen': 2,
'six—don’t': 1,
'waggle': 1,
'finger—whooping-cough,': 1,
'shillings”—and': 1,
'went,': 5,
'added': 5,
'differently': 1,
'each': 30,
'time;': 6,
'last': 48,
'just': 73,
'through,': 3,
'mumps': 1,
'reduced': 1,
'twelve': 1,
'kinds': 1,
'treated': 6,
'There': 41,
'same': 20,
'excitement': 1,
'over': 56,
'Michael': 67,
'even': 41,
'narrower': 1,
'squeak;': 1,
'both': 15,
'kept,': 1,
'soon,': 2,
'might': 28,
'seen': 20,
'row': 4,
'Miss': 2,
'Fulsom’s': 2,
'Kindergarten': 1,
'school,': 3,
'accompanied': 4,
'their': 213,
'nurse.': 4,
'everything': 6,
'so,': 9,
'passion': 2,
'being': 26,
'exactly': 13,
'neighbours;': 1,
'course,': 11,
'As': 24,
'poor,': 1,
'owing': 4,
'amount': 1,
'milk': 2,
'children': 75,
'drank,': 1,
'nurse': 5,
'prim': 1,
'Newfoundland': 1,
'dog,': 2,
'called': 30,
'Nana,': 9,
'belonged': 1,
'particular': 2,
'Darlings': 2,
'engaged': 1,
'important,': 1,
'however,': 17,
'become': 9,
'acquainted': 1,
'Kensington': 3,
'Gardens,': 1,
'where': 39,
'spent': 3,
'most': 38,
'spare': 1,
'peeping': 6,
'into': 100,
'perambulators,': 1,
'hated': 5,
'careless': 5,
'nursemaids,': 1,
'whom': 10,
'followed': 14,
'homes': 1,
'complained': 1,
'mistresses.': 1,
'proved': 2,
'treasure': 1,
'How': 10,
'thorough': 1,
'bath-time,': 2,
'moment': 48,
'night': 37,
'charges': 2,
'slightest': 3,
'cry.': 5,
'kennel': 6,
'nursery.': 4,
'genius': 3,
'knowing': 7,
'cough': 1,
'thing': 33,
'patience': 1,
'needs': 1,
'stocking': 2,
'around': 17,
'throat.': 1,
'believed': 7,
'old-fashioned': 1,
'remedies': 1,
'rhubarb': 1,
'leaf,': 2,
'sounds': 3,
'contempt': 3,
'new-fangled': 1,
'talk': 6,
'germs,': 1,
'on.': 11,
'It': 119,
'lesson': 2,
'propriety': 1,
'see': 84,
'escorting': 1,
'walking': 3,
'sedately': 1,
'side': 12,
'well': 24,
'behaved,': 1,
'butting': 1,
'back': 31,
'line': 4,
'strayed.': 1,
'On': 12,
'John’s': 5,
'footer': 1,
'days': 14,
'once': 40,
'forgot': 9,
'sweater,': 1,
'usually': 3,
'carried': 11,
'an': 97,
'umbrella': 1,
'case': 1,
'rain.': 1,
'room': 20,
'basement': 1,
'school': 5,
'nurses': 1,
'wait.': 3,
'forms,': 1,
'Nana': 34,
'lay': 17,
'floor,': 7,
'difference.': 1,
'affected': 2,
'ignore': 1,
'inferior': 3,
'social': 1,
'status': 1,
'themselves,': 7,
'despised': 3,
'light': 26,
'talk.': 1,
'resented': 2,
'visits': 1,
'nursery': 23,
'friends,': 3,
'did': 115,
'whipped': 4,
'Michael’s': 7,
'pinafore': 1,
'blue': 4,
'braiding,': 1,
'smoothed': 1,
'out': 114,
'dash': 1,
'hair.': 2,
'No': 12,
'possibly': 2,
'conducted': 2,
'correctly,': 1,
'yet': 14,
'sometimes': 22,
'wondered': 2,
'uneasily': 1,
'neighbours': 1,
'talked.': 1,
'position': 3,
'city': 1,
'consider.': 1,
'also': 16,
'troubled': 4,
'way.': 9,
'feeling': 15,
'admire': 2,
'admires': 1,
'tremendously,': 2,
'assure': 1,
'him,': 53,
'sign': 3,
'specially': 4,
'nice': 12,
'father.': 2,
'Lovely': 1,
'dances': 2,
'followed,': 1,
'other': 56,
'servant,': 1,
'Liza,': 2,
'allowed': 5,
'join.': 1,
'Such': 4,
'midget': 1,
'long': 49,
'skirt': 1,
'maid’s': 1,
'cap,': 1,
'sworn,': 1,
'engaged,': 1,
'gaiety': 2,
'romps!': 1,
'And': 27,
'gayest': 1,
'pirouette': 1,
'wildly': 3,
'kiss,': 3,
'dashed': 2,
'it.': 56,
'simpler': 1,
'happier': 1,
'family': 3,
'coming': 9,
'Pan.': 5,
'heard': 43,
'tidying': 2,
'children’s': 4,
'minds.': 1,
'nightly': 1,
'custom': 3,
'every': 39,
'good': 25,
'asleep': 9,
'rummage': 1,
'minds': 4,
'things': 27,
'straight': 7,
'next': 10,
'morning,': 3,
'repacking': 1,
'proper': 4,
'places': 2,
'articles': 1,
'wandered': 2,
'during': 2,
'day.': 1,
'If': 18,
'awake': 4,
'(but': 2,
'can’t)': 1,
'own': 19,
'doing': 10,
'this,': 18,
'find': 15,
'interesting': 2,
'watch': 8,
'drawers.': 1,
'knees,': 4,
'expect,': 1,
'lingering': 2,
'humorously': 1,
'some': 30,
'contents,': 1,
'wondering': 3,
'earth': 3,
'picked': 2,
'discoveries': 1,
'sweet,': 4,
'pressing': 3,
'cheek': 2,
'kitten,': 1,
'hurriedly': 1,
'stowing': 1,
'sight.': 5,
'When': 18,
'wake': 5,
'naughtiness': 1,
'evil': 5,
'passions': 1,
'bed': 25,
'folded': 2,
'small': 9,
'placed': 2,
'bottom': 1,
'top,': 2,
'beautifully': 2,
'aired,': 3,
'spread': 1,
'prettier': 1,
'thoughts,': 1,
'ready': 3,
'ever': 37,
'map': 5,
'person’s': 1,
'mind.': 5,
'Doctors': 1,
'draw': 9,
'maps': 2,
'parts': 2,
'you,': 24,
'intensely': 1,
'interesting,': 2,
'catch': 4,
'child’s': 1,
'mind,': 1,
'confused,': 1,
'keeps': 2,
'round': 43,
'time.': 9,
'zigzag': 1,
'lines': 2,
'temperature': 1,
'card,': 1,
'these': 22,
'probably': 8,
'roads': 1,
'island,': 9,
'Neverland': 11,
'less': 9,
'astonishing': 2,
'splashes': 1,
'colour': 5,
'here': 16,
'there,': 9,
'coral': 2,
'reefs': 1,
'rakish-looking': 2,
'craft': 3,
'offing,': 1,
'savages': 2,
'lonely': 4,
'lairs,': 1,
'gnomes': 1,
'mostly': 3,
'tailors,': 1,
'caves': 2,
'through': 44,
'river': 1,
'runs,': 2,
'princes': 1,
'elder': 1,
'brothers,': 1,
'hut': 1,
'fast': 4,
'decay,': 1,
'lady': 15,
'hooked': 1,
'nose.': 1,
'easy': 5,
'all,': 11,
'religion,': 1,
'fathers,': 1,
'pond,': 1,
'needle-work,': 1,
'murders,': 1,
'hangings,': 1,
'verbs': 1,
'take': 30,
'dative,': 1,
'chocolate': 2,
'pudding': 1,
'day,': 6,
'getting': 11,
'braces,': 1,
'ninety-nine,': 1,
'three-pence': 1,
'pulling': 5,
'tooth': 1,
'yourself,': 1,
'on,': 9,
'either': 3,
'part': 16,
'island': 18,
'showing': 9,
'confusing,': 1,
'especially': 6,
'nothing': 15,
'stand': 6,
'still.': 3,
'Neverlands': 2,
'vary': 1,
'deal.': 1,
'John’s,': 1,
'instance,': 5,
'lagoon': 13,
'flamingoes': 1,
'flying': 14,
'John': 76,
'shooting,': 1,
'Michael,': 17,
'small,': 1,
'flamingo': 2,
'lagoons': 1,
'boat': 3,
'turned': 12,
'upside': 1,
'sands,': 1,
'wigwam,': 1,
'leaves': 9,
'deftly': 2,
'sewn': 2,
'together.': 3,
'friends': 1,
'night,': 10,
'pet': 3,
'wolf': 2,
'forsaken': 1,
'its': 24,
'parents,': 2,
'resemblance,': 1,
'stood': 22,
'still': 51,
'other’s': 6,
'nose,': 1,
'forth.': 3,
'magic': 2,
'shores': 1,
'play': 8,
'beaching': 1,
'coracles.': 1,
'We': 15,
'too': 34,
'there;': 3,
'hear': 31,
'sound': 28,
'surf,': 1,
'shall': 23,
'land': 5,
'more.': 8,
'delectable': 1,
'islands': 1,
'snuggest': 1,
'compact,': 1,
'large': 13,
'sprawly,': 1,
'tedious': 1,
'distances': 1,
'adventure': 10,
'another,': 7,
'nicely': 2,
'crammed.': 1,
'chairs': 2,
'table-cloth,': 1,
'least': 11,
'alarming,': 1,
'minutes': 5,
'before': 39,
'go': 56,
'sleep': 13,
'becomes': 1,
'real.': 1,
'That': 14,
'night-lights.': 2,
'Occasionally': 1,
'travels': 1,
'found': 35,
'understand,': 2,
'perplexing': 1,
'word': 7,
'Peter.': 27,
'Peter,': 50,
'minds,': 1,
'began': 17,
'scrawled': 1,
'name': 7,
'bolder': 1,
'letters': 2,
'than': 57,
'words,': 8,
'gazed': 5,
'felt': 22,
'oddly': 2,
'cocky': 1,
'appearance.': 1,
'“Yes,': 20,
'cocky,”': 1,
'admitted': 3,
'regret.': 1,
'questioning': 1,
'“But': 17,
'he,': 2,
'pet?”': 1,
'“He': 16,
'Pan,': 2,
'mother.”': 7,
'At': 18,
'thinking': 14,
'childhood': 1,
'remembered': 7,
'live': 8,
'fairies.': 5,
'odd': 5,
'stories': 6,
'died': 4,
'them,': 47,
'frightened.': 2,
'time,': 14,
'now': 75,
'full': 8,
'sense': 6,
'doubted': 1,
'person.': 2,
'“Besides,”': 2,
'Wendy,': 54,
'“he': 5,
'grown': 10,
'time.”': 6,
'“Oh': 14,
'no,': 4,
'isn’t': 12,
'up,”': 5,
'assured': 3,
'confidently,': 1,
'“and': 20,
'size.”': 1,
'meant': 11,
'size': 2,
'body;': 2,
'didn’t': 4,
'how': 56,
'knew,': 3,
'consulted': 1,
'smiled': 3,
'pooh-pooh.': 1,
'“Mark': 1,
'words,”': 1,
'said,': 108,
'“it': 8,
'nonsense': 2,
'has': 38,
'putting': 4,
'heads;': 2,
'sort': 7,
'idea': 4,
'dog': 6,
...}
z={}
for w in peter_pan_words:
if w not in z:
z[w]=1
else:
z[w]+=1
z
{'***': 4,
'START': 1,
'OF': 2,
'THE': 27,
'PROJECT': 2,
'GUTENBERG': 2,
'EBOOK': 2,
'PETER': 4,
'PAN': 2,
'Peter': 235,
'Pan': 12,
'[PETER': 1,
'AND': 1,
'WENDY]': 1,
'by': 155,
'J.': 1,
'M.': 1,
'Barrie': 1,
'[James': 1,
'Matthew': 1,
'Barrie]': 1,
'A': 19,
'Millennium': 1,
'Fulcrum': 1,
'Edition': 1,
'produced': 1,
'in': 623,
'1991': 1,
'Duncan': 1,
'Research.': 1,
'Note': 1,
'that': 553,
'while': 26,
'a': 900,
'copyright': 3,
'was': 897,
'initially': 1,
'claimed': 2,
'for': 355,
'the': 2150,
'labor': 1,
'involved': 1,
'digitization,': 1,
'claim': 1,
'is': 318,
'not': 357,
'consistent': 2,
'with': 312,
'current': 1,
'requirements.': 1,
'This': 26,
'text,': 1,
'which': 116,
'matches': 1,
'1911': 1,
'original': 1,
'publication,': 1,
'public': 4,
'domain': 1,
'US.': 1,
'Contents': 1,
'Chapter': 34,
'I.': 3,
'BREAKS': 2,
'THROUGH': 2,
'II.': 2,
'SHADOW': 2,
'III.': 2,
'COME': 6,
'AWAY,': 2,
'AWAY!': 2,
'IV.': 2,
'FLIGHT': 2,
'V.': 3,
'ISLAND': 2,
'TRUE': 2,
'VI.': 2,
'LITTLE': 2,
'HOUSE': 2,
'VII.': 2,
'HOME': 6,
'UNDER': 2,
'GROUND': 2,
'VIII.': 2,
'MERMAIDS’': 2,
'LAGOON': 2,
'IX.': 2,
'NEVER': 2,
'BIRD': 2,
'X.': 2,
'HAPPY': 2,
'XI.': 2,
'WENDY’S': 2,
'STORY': 2,
'XII.': 2,
'CHILDREN': 2,
'ARE': 2,
'CARRIED': 2,
'OFF': 2,
'XIII.': 2,
'DO': 2,
'YOU': 2,
'BELIEVE': 2,
'IN': 2,
'FAIRIES?': 2,
'XIV.': 2,
'PIRATE': 2,
'SHIP': 2,
'XV.': 2,
'“HOOK': 2,
'OR': 2,
'ME': 2,
'THIS': 2,
'TIME”': 2,
'XVI.': 2,
'RETURN': 2,
'XVII.': 2,
'WHEN': 2,
'WENDY': 2,
'GREW': 2,
'UP': 2,
'All': 17,
'children,': 6,
'except': 19,
'one,': 15,
'grow': 8,
'up.': 14,
'They': 101,
'soon': 26,
'know': 64,
'they': 462,
'will': 78,
'up,': 17,
'and': 1322,
'way': 58,
'Wendy': 199,
'knew': 63,
'this.': 6,
'One': 9,
'day': 11,
'when': 151,
'she': 465,
'two': 36,
'years': 3,
'old': 22,
'playing': 10,
'garden,': 1,
'plucked': 2,
'another': 24,
'flower': 2,
'ran': 17,
'it': 463,
'to': 1134,
'her': 360,
'mother.': 9,
'I': 253,
'suppose': 7,
'must': 59,
'have': 243,
'looked': 33,
'rather': 40,
'delightful,': 1,
'Mrs.': 72,
'Darling': 93,
'put': 40,
'hand': 32,
'heart': 13,
'cried,': 42,
'“Oh,': 24,
'why': 13,
'can’t': 24,
'you': 351,
'remain': 4,
'like': 86,
'this': 153,
'ever!”': 1,
'all': 202,
'passed': 12,
'between': 13,
'them': 165,
'on': 313,
'subject,': 2,
'but': 373,
'henceforth': 2,
'You': 24,
'always': 50,
'after': 44,
'are': 165,
'two.': 3,
'Two': 2,
'beginning': 6,
'of': 807,
'end.': 3,
'Of': 36,
'course': 55,
'lived': 6,
'at': 305,
'14,': 1,
'until': 21,
'came': 71,
'mother': 33,
'chief': 3,
'one.': 11,
'She': 109,
'lovely': 14,
'lady,': 7,
'romantic': 4,
'mind': 11,
'such': 55,
'sweet': 7,
'mocking': 4,
'mouth.': 5,
'Her': 10,
'tiny': 5,
'boxes,': 1,
'one': 168,
'within': 7,
'other,': 5,
'come': 50,
'from': 131,
'puzzling': 2,
'East,': 1,
'however': 3,
'many': 24,
'discover': 3,
'there': 111,
'more;': 2,
'mouth': 15,
'had': 497,
'kiss': 8,
'could': 138,
'never': 65,
'get,': 1,
'though': 46,
'was,': 14,
'perfectly': 6,
'conspicuous': 1,
'right-hand': 2,
'corner.': 2,
'The': 135,
'Mr.': 46,
'won': 1,
'this:': 2,
'gentlemen': 3,
'who': 130,
'been': 135,
'boys': 61,
'girl': 10,
'discovered': 6,
'simultaneously': 2,
'loved': 13,
'her,': 37,
'house': 24,
'propose': 1,
'Darling,': 10,
'took': 24,
'cab': 2,
'nipped': 2,
'first,': 7,
'so': 196,
'he': 864,
'got': 33,
'her.': 41,
'He': 163,
'innermost': 1,
'box': 2,
'kiss.': 3,
'about': 99,
'box,': 2,
'time': 81,
'gave': 36,
'up': 110,
'trying': 10,
'thought': 69,
'Napoleon': 1,
'it,': 60,
'can': 40,
'picture': 1,
'him': 186,
'trying,': 2,
'then': 67,
'going': 31,
'off': 31,
'passion,': 1,
'slamming': 1,
'door.': 4,
'used': 14,
'boast': 2,
'only': 82,
'respected': 1,
'him.': 66,
'those': 17,
'deep': 2,
'ones': 13,
'stocks': 3,
'shares.': 1,
'no': 127,
'really': 44,
'knows,': 1,
'quite': 62,
'seemed': 23,
'know,': 11,
'often': 16,
'said': 218,
'were': 243,
'shares': 1,
'down': 50,
'would': 209,
'made': 48,
'any': 36,
'woman': 7,
'respect': 3,
'married': 6,
'white,': 3,
'first': 64,
'kept': 12,
'books': 1,
'perfectly,': 1,
'almost': 34,
'gleefully,': 3,
'as': 303,
'if': 121,
'game,': 3,
'much': 29,
'Brussels': 1,
'sprout': 1,
'missing;': 1,
'whole': 14,
'cauliflowers': 1,
'dropped': 12,
'out,': 15,
'instead': 13,
'pictures': 1,
'babies': 4,
'without': 33,
'faces.': 1,
'drew': 11,
'should': 45,
'totting': 2,
'Darling’s': 7,
'guesses.': 2,
'John,': 21,
'Michael.': 6,
'For': 25,
'week': 6,
'or': 61,
'doubtful': 2,
'whether': 18,
'be': 229,
'able': 10,
'keep': 12,
'feed.': 1,
'frightfully': 10,
'proud': 7,
'very': 63,
'honourable,': 1,
'sat': 34,
'edge': 3,
'bed,': 11,
'holding': 5,
'calculating': 1,
'expenses,': 1,
'imploringly.': 2,
'wanted': 14,
'risk': 1,
'what': 104,
'might,': 1,
'his': 455,
'way;': 1,
'pencil': 1,
'piece': 4,
'paper,': 2,
'confused': 2,
'suggestions': 1,
'begin': 1,
'again.': 22,
'“Now': 8,
'don’t': 54,
'interrupt,”': 1,
'beg': 2,
'“I': 159,
'pound': 2,
'seventeen': 1,
'here,': 6,
'six': 9,
'office;': 1,
'cut': 13,
'my': 69,
'coffee': 1,
'office,': 3,
'say': 36,
'ten': 8,
'shillings,': 1,
'making': 10,
'nine': 12,
'six,': 2,
'your': 71,
'eighteen': 1,
'three': 24,
'makes': 6,
'seven,': 2,
'five': 3,
'naught': 2,
'cheque-book': 3,
'eight': 3,
'seven—who': 1,
'moving?—eight': 1,
'dot': 1,
'carry': 9,
'seven—don’t': 1,
'speak,': 2,
'own—and': 1,
'lent': 1,
'man': 33,
'door—quiet,': 1,
'child—dot': 1,
'child—there,': 1,
'you’ve': 1,
'done': 10,
'it!—did': 1,
'seven?': 1,
'yes,': 5,
'seven;': 1,
'question': 7,
'is,': 6,
'we': 130,
'try': 2,
'year': 5,
'seven?”': 1,
'“Of': 8,
'can,': 1,
'George,”': 5,
'cried.': 18,
'But': 65,
'prejudiced': 2,
'Wendy’s': 26,
'favour,': 1,
'grander': 1,
'character': 2,
'“Remember': 1,
'mumps,”': 1,
'warned': 3,
'threateningly,': 1,
'went': 48,
'“Mumps': 1,
'pound,': 1,
'down,': 7,
'daresay': 2,
'more': 61,
'thirty': 2,
'shillings—don’t': 1,
'speak—measles': 1,
'five,': 1,
'German': 1,
'measles': 2,
'half': 8,
'guinea,': 1,
'fifteen': 2,
'six—don’t': 1,
'waggle': 1,
'finger—whooping-cough,': 1,
'shillings”—and': 1,
'went,': 5,
'added': 5,
'differently': 1,
'each': 30,
'time;': 6,
'last': 48,
'just': 73,
'through,': 3,
'mumps': 1,
'reduced': 1,
'twelve': 1,
'kinds': 1,
'treated': 6,
'There': 41,
'same': 20,
'excitement': 1,
'over': 56,
'Michael': 67,
'even': 41,
'narrower': 1,
'squeak;': 1,
'both': 15,
'kept,': 1,
'soon,': 2,
'might': 28,
'seen': 20,
'row': 4,
'Miss': 2,
'Fulsom’s': 2,
'Kindergarten': 1,
'school,': 3,
'accompanied': 4,
'their': 213,
'nurse.': 4,
'everything': 6,
'so,': 9,
'passion': 2,
'being': 26,
'exactly': 13,
'neighbours;': 1,
'course,': 11,
'As': 24,
'poor,': 1,
'owing': 4,
'amount': 1,
'milk': 2,
'children': 75,
'drank,': 1,
'nurse': 5,
'prim': 1,
'Newfoundland': 1,
'dog,': 2,
'called': 30,
'Nana,': 9,
'belonged': 1,
'particular': 2,
'Darlings': 2,
'engaged': 1,
'important,': 1,
'however,': 17,
'become': 9,
'acquainted': 1,
'Kensington': 3,
'Gardens,': 1,
'where': 39,
'spent': 3,
'most': 38,
'spare': 1,
'peeping': 6,
'into': 100,
'perambulators,': 1,
'hated': 5,
'careless': 5,
'nursemaids,': 1,
'whom': 10,
'followed': 14,
'homes': 1,
'complained': 1,
'mistresses.': 1,
'proved': 2,
'treasure': 1,
'How': 10,
'thorough': 1,
'bath-time,': 2,
'moment': 48,
'night': 37,
'charges': 2,
'slightest': 3,
'cry.': 5,
'kennel': 6,
'nursery.': 4,
'genius': 3,
'knowing': 7,
'cough': 1,
'thing': 33,
'patience': 1,
'needs': 1,
'stocking': 2,
'around': 17,
'throat.': 1,
'believed': 7,
'old-fashioned': 1,
'remedies': 1,
'rhubarb': 1,
'leaf,': 2,
'sounds': 3,
'contempt': 3,
'new-fangled': 1,
'talk': 6,
'germs,': 1,
'on.': 11,
'It': 119,
'lesson': 2,
'propriety': 1,
'see': 84,
'escorting': 1,
'walking': 3,
'sedately': 1,
'side': 12,
'well': 24,
'behaved,': 1,
'butting': 1,
'back': 31,
'line': 4,
'strayed.': 1,
'On': 12,
'John’s': 5,
'footer': 1,
'days': 14,
'once': 40,
'forgot': 9,
'sweater,': 1,
'usually': 3,
'carried': 11,
'an': 97,
'umbrella': 1,
'case': 1,
'rain.': 1,
'room': 20,
'basement': 1,
'school': 5,
'nurses': 1,
'wait.': 3,
'forms,': 1,
'Nana': 34,
'lay': 17,
'floor,': 7,
'difference.': 1,
'affected': 2,
'ignore': 1,
'inferior': 3,
'social': 1,
'status': 1,
'themselves,': 7,
'despised': 3,
'light': 26,
'talk.': 1,
'resented': 2,
'visits': 1,
'nursery': 23,
'friends,': 3,
'did': 115,
'whipped': 4,
'Michael’s': 7,
'pinafore': 1,
'blue': 4,
'braiding,': 1,
'smoothed': 1,
'out': 114,
'dash': 1,
'hair.': 2,
'No': 12,
'possibly': 2,
'conducted': 2,
'correctly,': 1,
'yet': 14,
'sometimes': 22,
'wondered': 2,
'uneasily': 1,
'neighbours': 1,
'talked.': 1,
'position': 3,
'city': 1,
'consider.': 1,
'also': 16,
'troubled': 4,
'way.': 9,
'feeling': 15,
'admire': 2,
'admires': 1,
'tremendously,': 2,
'assure': 1,
'him,': 53,
'sign': 3,
'specially': 4,
'nice': 12,
'father.': 2,
'Lovely': 1,
'dances': 2,
'followed,': 1,
'other': 56,
'servant,': 1,
'Liza,': 2,
'allowed': 5,
'join.': 1,
'Such': 4,
'midget': 1,
'long': 49,
'skirt': 1,
'maid’s': 1,
'cap,': 1,
'sworn,': 1,
'engaged,': 1,
'gaiety': 2,
'romps!': 1,
'And': 27,
'gayest': 1,
'pirouette': 1,
'wildly': 3,
'kiss,': 3,
'dashed': 2,
'it.': 56,
'simpler': 1,
'happier': 1,
'family': 3,
'coming': 9,
'Pan.': 5,
'heard': 43,
'tidying': 2,
'children’s': 4,
'minds.': 1,
'nightly': 1,
'custom': 3,
'every': 39,
'good': 25,
'asleep': 9,
'rummage': 1,
'minds': 4,
'things': 27,
'straight': 7,
'next': 10,
'morning,': 3,
'repacking': 1,
'proper': 4,
'places': 2,
'articles': 1,
'wandered': 2,
'during': 2,
'day.': 1,
'If': 18,
'awake': 4,
'(but': 2,
'can’t)': 1,
'own': 19,
'doing': 10,
'this,': 18,
'find': 15,
'interesting': 2,
'watch': 8,
'drawers.': 1,
'knees,': 4,
'expect,': 1,
'lingering': 2,
'humorously': 1,
'some': 30,
'contents,': 1,
'wondering': 3,
'earth': 3,
'picked': 2,
'discoveries': 1,
'sweet,': 4,
'pressing': 3,
'cheek': 2,
'kitten,': 1,
'hurriedly': 1,
'stowing': 1,
'sight.': 5,
'When': 18,
'wake': 5,
'naughtiness': 1,
'evil': 5,
'passions': 1,
'bed': 25,
'folded': 2,
'small': 9,
'placed': 2,
'bottom': 1,
'top,': 2,
'beautifully': 2,
'aired,': 3,
'spread': 1,
'prettier': 1,
'thoughts,': 1,
'ready': 3,
'ever': 37,
'map': 5,
'person’s': 1,
'mind.': 5,
'Doctors': 1,
'draw': 9,
'maps': 2,
'parts': 2,
'you,': 24,
'intensely': 1,
'interesting,': 2,
'catch': 4,
'child’s': 1,
'mind,': 1,
'confused,': 1,
'keeps': 2,
'round': 43,
'time.': 9,
'zigzag': 1,
'lines': 2,
'temperature': 1,
'card,': 1,
'these': 22,
'probably': 8,
'roads': 1,
'island,': 9,
'Neverland': 11,
'less': 9,
'astonishing': 2,
'splashes': 1,
'colour': 5,
'here': 16,
'there,': 9,
'coral': 2,
'reefs': 1,
'rakish-looking': 2,
'craft': 3,
'offing,': 1,
'savages': 2,
'lonely': 4,
'lairs,': 1,
'gnomes': 1,
'mostly': 3,
'tailors,': 1,
'caves': 2,
'through': 44,
'river': 1,
'runs,': 2,
'princes': 1,
'elder': 1,
'brothers,': 1,
'hut': 1,
'fast': 4,
'decay,': 1,
'lady': 15,
'hooked': 1,
'nose.': 1,
'easy': 5,
'all,': 11,
'religion,': 1,
'fathers,': 1,
'pond,': 1,
'needle-work,': 1,
'murders,': 1,
'hangings,': 1,
'verbs': 1,
'take': 30,
'dative,': 1,
'chocolate': 2,
'pudding': 1,
'day,': 6,
'getting': 11,
'braces,': 1,
'ninety-nine,': 1,
'three-pence': 1,
'pulling': 5,
'tooth': 1,
'yourself,': 1,
'on,': 9,
'either': 3,
'part': 16,
'island': 18,
'showing': 9,
'confusing,': 1,
'especially': 6,
'nothing': 15,
'stand': 6,
'still.': 3,
'Neverlands': 2,
'vary': 1,
'deal.': 1,
'John’s,': 1,
'instance,': 5,
'lagoon': 13,
'flamingoes': 1,
'flying': 14,
'John': 76,
'shooting,': 1,
'Michael,': 17,
'small,': 1,
'flamingo': 2,
'lagoons': 1,
'boat': 3,
'turned': 12,
'upside': 1,
'sands,': 1,
'wigwam,': 1,
'leaves': 9,
'deftly': 2,
'sewn': 2,
'together.': 3,
'friends': 1,
'night,': 10,
'pet': 3,
'wolf': 2,
'forsaken': 1,
'its': 24,
'parents,': 2,
'resemblance,': 1,
'stood': 22,
'still': 51,
'other’s': 6,
'nose,': 1,
'forth.': 3,
'magic': 2,
'shores': 1,
'play': 8,
'beaching': 1,
'coracles.': 1,
'We': 15,
'too': 34,
'there;': 3,
'hear': 31,
'sound': 28,
'surf,': 1,
'shall': 23,
'land': 5,
'more.': 8,
'delectable': 1,
'islands': 1,
'snuggest': 1,
'compact,': 1,
'large': 13,
'sprawly,': 1,
'tedious': 1,
'distances': 1,
'adventure': 10,
'another,': 7,
'nicely': 2,
'crammed.': 1,
'chairs': 2,
'table-cloth,': 1,
'least': 11,
'alarming,': 1,
'minutes': 5,
'before': 39,
'go': 56,
'sleep': 13,
'becomes': 1,
'real.': 1,
'That': 14,
'night-lights.': 2,
'Occasionally': 1,
'travels': 1,
'found': 35,
'understand,': 2,
'perplexing': 1,
'word': 7,
'Peter.': 27,
'Peter,': 50,
'minds,': 1,
'began': 17,
'scrawled': 1,
'name': 7,
'bolder': 1,
'letters': 2,
'than': 57,
'words,': 8,
'gazed': 5,
'felt': 22,
'oddly': 2,
'cocky': 1,
'appearance.': 1,
'“Yes,': 20,
'cocky,”': 1,
'admitted': 3,
'regret.': 1,
'questioning': 1,
'“But': 17,
'he,': 2,
'pet?”': 1,
'“He': 16,
'Pan,': 2,
'mother.”': 7,
'At': 18,
'thinking': 14,
'childhood': 1,
'remembered': 7,
'live': 8,
'fairies.': 5,
'odd': 5,
'stories': 6,
'died': 4,
'them,': 47,
'frightened.': 2,
'time,': 14,
'now': 75,
'full': 8,
'sense': 6,
'doubted': 1,
'person.': 2,
'“Besides,”': 2,
'Wendy,': 54,
'“he': 5,
'grown': 10,
'time.”': 6,
'“Oh': 14,
'no,': 4,
'isn’t': 12,
'up,”': 5,
'assured': 3,
'confidently,': 1,
'“and': 20,
'size.”': 1,
'meant': 11,
'size': 2,
'body;': 2,
'didn’t': 4,
'how': 56,
'knew,': 3,
'consulted': 1,
'smiled': 3,
'pooh-pooh.': 1,
'“Mark': 1,
'words,”': 1,
'said,': 108,
'“it': 8,
'nonsense': 2,
'has': 38,
'putting': 4,
'heads;': 2,
'sort': 7,
'idea': 4,
'dog': 6,
...}