"Thing" and "something" in Jane Eyre -- a readable version

In this notebook I study the uses of "something" and "thing" in Jane Eyre. They can both express uncertain perception, but "thing" is also used as a term of belittlement.

In [1]:
import spacy
In [2]:
print spacy.__version__
1.9.0
In [3]:
nlp = spacy.load('en')
In [7]:
import codecs

text = codecs.open('Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt', 'r', encoding = 'utf-8').read()
In [8]:
doc = nlp(text)

How many instances of "something" are there in Jane Eyre?

In [9]:
somethings = []
for t in doc:
    if t.lemma_ == 'something':
        somethings.append(t)
        #print t.text
        #print t.text
print len(somethings)
136

How many instances of "thing" are there in Jane Eyre?

In [10]:
things = []
for t in doc:
    if t.lemma_ == 'thing':
        things.append(t)
print len(things)
144

What are the most common dependency tags for "thing" in Jane Eyre?

In [11]:
from collections import Counter

my_deps = []

for thing in things:
    my_deps.append(thing.dep_)
    
for w in Counter(my_deps).most_common():
    rel_thing_dep = (float(w[1]) / float(len(things)))*float('100')
    print w[0], w[1], rel_thing_dep
dobj 43 29.8611111111
pobj 29 20.1388888889
attr 23 15.9722222222
nsubj 18 12.5
appos 11 7.63888888889
npadvmod 8 5.55555555556
nsubjpass 5 3.47222222222
conj 4 2.77777777778
ROOT 2 1.38888888889
ccomp 1 0.694444444444

What are the most common dependency tags for "something" in Jane Eyre?

In [12]:
from collections import Counter

my_deps = []

for something in somethings:
    my_deps.append(something.dep_)
    
for w in Counter(my_deps).most_common():
    rel_something_dep = (float(w[1]) / float(len(somethings)))*float('100')
    print w[0], w[1], rel_something_dep
    
dobj 65 47.7941176471
attr 22 16.1764705882
pobj 16 11.7647058824
nsubj 14 10.2941176471
conj 8 5.88235294118
appos 5 3.67647058824
dep 2 1.47058823529
nsubjpass 1 0.735294117647
advcl 1 0.735294117647
advmod||conj 1 0.735294117647
ROOT 1 0.735294117647

Thing

Below (next two cells) I am finding paragraphs with most "thing" lemma in them -- I get numbers (in order in the novel) of paragraphs with more than one "thing" lemma in them.

In [14]:
import re

paragraphs = re.split('\n\n+', text)
p_numbers = []

for i, p in enumerate(paragraphs):
    
    tokens = []

    spacy_p = nlp(p)

    for t in spacy_p:
        tokens.append(t)

        if t.lemma_ == 'thing':
            #print i, t.dep_
            p_numbers.append(i)
In [15]:
thing_paragraphs = []
for n in Counter(p_numbers).most_common():
    if float(n[1]) > float('1'):
        print n
        thing_paragraphs.append(n[0])
(102, 4)
(3208, 2)
(1189, 2)
(3778, 2)
(270, 2)
(3720, 2)
(3394, 2)

Below I print out the paragraphs identified above.

In [16]:
for i, p in enumerate(paragraphs):
    if i in thing_paragraphs:
        print
        print '[paragraph '+str(i)+']', p
        print
[paragraph 102] I was a discord in Gateshead Hall: I was like nobody there; I had nothing
in harmony with Mrs. Reed or her children, or her chosen vassalage.  If
they did not love me, in fact, as little did I love them.  They were not
bound to regard with affection a thing that could not sympathise with one
amongst them; a heterogeneous thing, opposed to them in temperament, in
capacity, in propensities; a useless thing, incapable of serving their
interest, or adding to their pleasure; a noxious thing, cherishing the
germs of indignation at their treatment, of contempt of their judgment.  I
know that had I been a sanguine, brilliant, careless, exacting, handsome,
romping child   --   though equally dependent and friendless   --   Mrs. Reed would
have endured my presence more complacently; her children would have
entertained for me more of the cordiality of fellow-feeling; the servants
would have been less prone to make me the scapegoat of the nursery.


[paragraph 270] "This is the state of things I quite approve," returned Mrs. Reed; "had I
sought all England over, I could scarcely have found a system more
exactly fitting a child like Jane Eyre.  Consistency, my dear Mr.
Brocklehurst; I advocate consistency in all things."


[paragraph 1189] "To speak truth, sir, I don't understand you at all: I cannot keep up the
conversation, because it has got out of my depth.  Only one thing, I
know: you said you were not as good as you should like to be, and that
you regretted your own imperfection;   --   one thing I can comprehend: you
intimated that to have a sullied memory was a perpetual bane.  It seems
to me, that if you tried hard, you would in time find it possible to
become what you yourself would approve; and that if from this day you
began with resolution to correct your thoughts and actions, you would in
a few years have laid up a new and stainless store of recollections, to
which you might revert with pleasure."


[paragraph 3208] My home, then, when I at last find a home,   --   is a cottage; a little room
with whitewashed walls and a sanded floor, containing four painted chairs
and a table, a clock, a cupboard, with two or three plates and dishes,
and a set of tea-things in delf.  Above, a chamber of the same dimensions
as the kitchen, with a deal bedstead and chest of drawers; small, yet too
large to be filled with my scanty wardrobe: though the kindness of my
gentle and generous friends has increased that, by a modest stock of such
things as are necessary.


[paragraph 3394] Here was a new card turned up!  It is a fine thing, reader, to be lifted
in a moment from indigence to wealth   --   a very fine thing; but not a matter
one can comprehend, or consequently enjoy, all at once.  And then there
are other chances in life far more thrilling and rapture-giving:  this 
is solid, an affair of the actual world, nothing ideal about it: all its
associations are solid and sober, and its manifestations are the same.
One does not jump, and spring, and shout hurrah! at hearing one has got a
fortune; one begins to consider responsibilities, and to ponder business;
on a base of steady satisfaction rise certain grave cares, and we contain
ourselves, and brood over our bliss with a solemn brow.


[paragraph 3720] "Thank you, Jane.  As I said, I shall return from Cambridge in a
fortnight: that space, then, is yet left you for reflection.  If I
listened to human pride, I should say no more to you of marriage with me;
but I listen to my duty, and keep steadily in view my first aim   --   to do
all things to the glory of God.  My Master was long-suffering: so will I
be.  I cannot give you up to perdition as a vessel of wrath:
repent   --   resolve, while there is yet time.  Remember, we are bid to work
while it is day   --   warned that 'the night cometh when no man shall work.'
Remember the fate of Dives, who had his good things in this life.  God
give you strength to choose that better part which shall not be taken
from you!"


[paragraph 3778] "She was kept in very close confinement, ma'am: people even for some
years was not absolutely certain of her existence.  No one saw her: they
only knew by rumour that such a person was at the Hall; and who or what
she was it was difficult to conjecture.  They said Mr. Edward had brought
her from abroad, and some believed she had been his mistress.  But a
queer thing happened a year since   --   a very queer thing."

What happens, when Rochester calls Jane "thing"?

Among the passages Sandra and I have marked up, there are three, where Rochester calls Jane 'thing'. I want to see what dependency tag spacy assigns to these passages, so that we can find more similar passages in Jane Eyre. Below I find sentence numbers for these passages, to later do dependency parsing on these sentences.

(4047) "You -- you strange, you almost unearthly thing!"

(4199) "But what had you to ask, thing, -- out with it?"

(4379) "Yes, bonny wee thing, I'll wear you in my bosom, lest my jewel I should tyne

"Thing" in these sentences is usually translated to German as "Ding," although sometimes it is ommitted and sometimes translated as "Wesen."

In [17]:
for i, s in enumerate(doc.sents):
    for t in s:
        if t.text == "wee" or t.text =="unearthly":
            print i, s
    if re.search('ask, thing', str(s)):
        print i, s
4047 You   --   you strange, you almost unearthly thing!   --   I
love as my own flesh.  
4199 But what
had you to ask, thing,   --   out with it?"

"There, you are less than civil now; and I like rudeness a great deal
better than flattery.  
4379 Yes, bonny wee thing, I'll wear you in my bosom, lest
my jewel I should tyne."


In [18]:
je_thing_sents = []
for i, s in enumerate(doc.sents):
    if i in [int('4047'), int('4199'), int('4379')]:
        print '----------'+str(i)+'-----------'
        print s
        print
        for t in s:
            if t.lemma_ == "thing":
                print t.text, t.pos_, t.dep_
                print
----------4047-----------
You   --   you strange, you almost unearthly thing!   --   I
love as my own flesh.  

thing NOUN npadvmod

----------4199-----------
But what
had you to ask, thing,   --   out with it?"

"There, you are less than civil now; and I like rudeness a great deal
better than flattery.  

thing NOUN npadvmod

----------4379-----------
Yes, bonny wee thing, I'll wear you in my bosom, lest
my jewel I should tyne."



thing NOUN npadvmod

Spacy has tagged dependency for "thing" in these passages as npadvmod (noun-phrase adverbial modifier). In the meantime I found out that sometimes spacy tags "thing" in similar passages as appos (appositional modifier). Below I get out from Jane Eyre all the sentences, where "thing" is dependency tagged as appos or npadvmod.

In [22]:
sents = []
for i, s in enumerate(doc.sents):
    for t in s:
        if t.lemma_ == 'thing' and (t.dep_ == 'appos' or t.dep_ == 'npadvmod'):
            print '-------'+str(i)+'----'+t.dep_+'--------'
            print s
            sents.append(s)
            print
            print '*********************************************************************************'
            print
print 'sentences selected', str(len(sents))
-------104----appos--------
Four hands were
immediately laid upon me, and I was borne upstairs.




CHAPTER II


I resisted all the way: a new thing for me, and a circumstance which
greatly strengthened the bad opinion Bessie and Miss Abbot were disposed
to entertain of me.  

*********************************************************************************

-------296----appos--------
Are you afraid now in
daylight?"

"No: but night will come again before long: and besides,   --   I am
unhappy,   --   very unhappy, for other things."

"What other things?  

*********************************************************************************

-------520----npadvmod--------
She is always scolding me."

"Because you're such a queer, frightened, shy little thing.  

*********************************************************************************

-------632----appos--------
I was still looking at them, and also at intervals examining the
teachers   --   none of whom precisely pleased me; for the stout one was a
little coarse, the dark one not a little fierce, the foreigner harsh and
grotesque, and Miss Miller, poor thing! looked purple, weather-beaten,
and over-worked   --   when, as my eye wandered from face to face, the whole
school rose simultaneously, as if moved by a common spring.



*********************************************************************************

-------834----appos--------
The
other teachers, poor things, were generally themselves too much dejected
to attempt the task of cheering others.



*********************************************************************************

-------1144----appos--------
The
unhealthy nature of the site; the quantity and quality of the children's
food; the brackish, fetid water used in its preparation; the pupils'
wretched clothing and accommodations   --   all these things were discovered,
and the discovery produced a result mortifying to Mr. Brocklehurst, but
beneficial to the institution.



*********************************************************************************

-------1985----npadvmod--------
Only one thing, I
know: you said you were not as good as you should like to be, and that
you regretted your own imperfection;   --   one thing I can comprehend: you
intimated that to have a sullied memory was a perpetual bane.  

*********************************************************************************

-------1985----npadvmod--------
Only one thing, I
know: you said you were not as good as you should like to be, and that
you regretted your own imperfection;   --   one thing I can comprehend: you
intimated that to have a sullied memory was a perpetual bane.  

*********************************************************************************

-------2670----appos--------
"Poor, puny things, not fit to stir a
step beyond papa's park gates: nor to go even so far without mama's
permission and guardianship

*********************************************************************************

-------3524----npadvmod--------
"

"Just let me look at the cash."

"No, sir; you are not to be trusted."

"Jane!"

"Sir?"

"Promise me one thing."



*********************************************************************************

-------3670----npadvmod--------
Good! but not quite the thing,

*********************************************************************************

-------3715----appos--------
Instead of living for, in, and with yourself, as a
reasonable being ought, you seek only to fasten your feebleness on some
other person's strength: if no one can be found willing to burden her or
himself with such a fat, weak, puffy, useless thing, you cry out that you
are ill-treated, neglected, miserable.  

*********************************************************************************

-------4047----npadvmod--------
You   --   you strange, you almost unearthly thing!   --   I
love as my own flesh.  

*********************************************************************************

-------4176----appos--------
I wonder how you will answer me a year
hence, should I ask a favour it does not suit your convenience or
pleasure to grant."

"Ask me something now, Jane,   --   the least thing: I desire to be entreated   --   "

"

*********************************************************************************

-------4199----npadvmod--------
But what
had you to ask, thing,   --   out with it?"

"There, you are less than civil now; and I like rudeness a great deal
better than flattery.  

*********************************************************************************

-------4379----npadvmod--------
Yes, bonny wee thing, I'll wear you in my bosom, lest
my jewel I should tyne."



*********************************************************************************

-------4544----appos--------
"All day yesterday I was very busy, and very happy in my ceaseless
bustle; for I am not, as you seem to think, troubled by any haunting
fears about the new sphere, et cetera: I think it a glorious thing to
have the hope of living with you, because I love you.  

*********************************************************************************

-------5824----appos--------
"Well, it was hard: but what can a body do?  I thought more o' th'
childer nor of mysel: poor things!  They've like nobody to tak' care on
'em but me.  I'm like to look sharpish.

*********************************************************************************

-------6597----appos--------
It is a fine thing, reader, to be lifted
in a moment from indigence to wealth   --   a very fine thing; but not a matter
one can comprehend, or consequently enjoy, all at once.  

*********************************************************************************

sentences selected 19

Sentences above, where the use of "thing" refers to a person: 520, 632, 834, 2670, 3715, 4047, 4199, 4379, 5824.

In 9 out of 19 sentences, where spacy classifies "thing" as appositional modifier or noun phrase adverbial mofifier, "thing" refers to a person. In all these sentences, use of thing seems to be linked to intentional looking (gazing).

Expanding corpus

Now, besides Jane Eyre, I will also look at David Copperfield and two Marlitt's works: Countess Gisela, and Old Madamoiselle's Secret. This will allow me to compare how "thing" is used in reference to a person in these novels.

In [24]:
import nltk

texts = [
    {'file_name': 'Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt', 
         'raw_text': '', 'tokens': [], 'text_obj': None, 'spacy_doc': None},
    {'file_name': 'Dickens_Charles_The_Personal_History_of_David_Copperfield_PG_43111.txt', 
         'raw_text': '', 'tokens': [], 'text_obj': None, 'spacy_doc': None},
    {'file_name': 'Marlitt_Wister_Countess_Gisela_corrected_4_10_2018.txt', 
         'raw_text': '', 'tokens': [], 'text_obj': None, 'spacy_doc': None},
    {'file_name': 'Marlitt_Wister_OMS_translation_cleaned_110617.txt', 
         'raw_text': '', 'tokens': [], 'text_obj': None, 'spacy_doc': None},
]

for t in texts:
    t['raw_text'] = codecs.open(t['file_name'], 'r', encoding='utf-8').read()
    t['tokens'] = nltk.word_tokenize(t['raw_text'])
    t['text_obj'] = nltk.Text(t['tokens'])
    
    cleaned_text = re.sub('\s+', ' ', t['raw_text'])
    
    t['spacy_doc'] = nlp(cleaned_text)

print 'Done!'
Done!

First I look at how many times "thing" lemma appears in each novel and how many times it is an appositional modifier or noun-phrase adverbial modifier (likely to be referring to a person).

In [25]:
print
for t in texts:
    print t['file_name']
    thing = []
    select_thing = []
    for token in t['spacy_doc']:
            if token.lemma_ == 'thing':
                if token.dep_ == 'appos' or token.dep_ == 'npadvmod':
                    select_thing.append(token) 
                else:
                    thing.append(token)
    print 'thing:', str(len(thing)), 'thing as appos or npadvmod:', str(len(select_thing))
    print
    
Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt
thing: 126 thing as appos or npadvmod: 18

Dickens_Charles_The_Personal_History_of_David_Copperfield_PG_43111.txt
thing: 300 thing as appos or npadvmod: 29

Marlitt_Wister_Countess_Gisela_corrected_4_10_2018.txt
thing: 31 thing as appos or npadvmod: 5

Marlitt_Wister_OMS_translation_cleaned_110617.txt
thing: 42 thing as appos or npadvmod: 4

Modifiers of "thing" (where "thing" is likely to be a person)

Below I get adjectives and adverbs from sentences, where "thing" is tagged as an appositional modifier or a noun-phrase adverbial modifier.

In [26]:
for t in texts:
    print t['file_name']
    advs = []
    advs_select = []
    for s in t['spacy_doc'].sents:
        for t in s:
            if t.lemma_ == 'thing':
                if t.dep_ == 'appos' or t.dep_ == 'npadvmod':
                    for t in s:
                        if t.pos_ == 'ADJ' or t.pos_ == 'ADV':
                        
                            advs_select.append(t.lemma_)
                else:
                    
                    for t in s:
                        
                        if t.pos_ == 'ADJ' or t.pos_ == 'ADV':
                            advs.append(t.lemma_)
                            
    print 'THING AS APPOS OR NPADVMOD'
    for a in Counter(advs_select).most_common():
        if float(a[1]) > float('2'):
            print a
    print 'OTHER THING'
    for a in Counter(advs).most_common():
        if float(a[1]) > float('3'):
            print a
Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt
THING AS APPOS OR NPADVMOD
(u'not', 12)
(u'-PRON-', 10)
(u'all', 4)
(u'little', 4)
(u'poor', 4)
(u'good', 4)
(u'own', 3)
(u'only', 3)
OTHER THING
(u'-PRON-', 143)
(u'not', 42)
(u'such', 16)
(u'when', 15)
(u'so', 15)
(u'more', 13)
(u'that', 13)
(u'never', 12)
(u'little', 12)
(u'very', 11)
(u'there', 10)
(u'other', 9)
(u'good', 9)
(u'now', 9)
(u'then', 7)
(u'first', 7)
(u'too', 7)
(u'how', 7)
(u'strange', 7)
(u'which', 6)
(u'yet', 5)
(u'before', 5)
(u'away', 5)
(u'poor', 5)
(u'all', 4)
(u'own', 4)
(u'unhappy', 4)
(u'only', 4)
(u'black', 4)
(u'old', 4)
(u'quite', 4)
(u'here', 4)
(u'last', 4)
(u'many', 4)
(u'noxious', 4)
(u'long', 4)
(u'next', 4)
(u'much', 4)
(u'heterogeneous', 4)
(u'fine', 4)
(u'useless', 4)
(u'incapable', 4)
Dickens_Charles_The_Personal_History_of_David_Copperfield_PG_43111.txt
THING AS APPOS OR NPADVMOD
(u'-PRON-', 16)
(u'now', 10)
(u'not', 7)
(u'that', 6)
(u'much', 5)
(u'ever', 5)
(u'more', 5)
(u'poor', 5)
(u'why', 5)
(u'so', 5)
(u'little', 4)
(u'then', 4)
(u'such', 3)
(u'good', 3)
OTHER THING
(u'-PRON-', 307)
(u'not', 115)
(u'little', 58)
(u'so', 57)
(u'when', 57)
(u'such', 52)
(u'there', 45)
(u'which', 44)
(u'good', 43)
(u'that', 40)
(u'very', 34)
(u'more', 26)
(u'never', 25)
(u'ever', 22)
(u'always', 22)
(u'all', 21)
(u'now', 20)
(u'much', 20)
(u'old', 20)
(u'then', 17)
(u'other', 17)
(u'first', 16)
(u'as', 16)
(u'quite', 15)
(u'away', 15)
(u'how', 13)
(u'many', 13)
(u'too', 12)
(u'great', 11)
(u'hard', 11)
(u'most', 11)
(u'same', 11)
(u'own', 11)
(u'young', 10)
(u'why', 10)
(u'well', 10)
(u'poor', 10)
(u'long', 9)
(u'only', 9)
(u'dear', 9)
(u'bad', 8)
(u'else', 8)
(u'sometimes', 8)
(u'here', 7)
(u'next', 7)
(u'really', 7)
(u'back', 7)
(u'sure', 7)
(u'where', 7)
(u'often', 7)
(u'home', 7)
(u'again', 7)
(u'wrong', 6)
(u'indeed', 6)
(u'soon', 6)
(u'least', 6)
(u'wonderful', 6)
(u'silly', 6)
(u'last', 6)
(u'down', 6)
(u'low', 6)
(u'up', 6)
(u'even', 5)
(u'short', 5)
(u'over', 5)
(u'still', 5)
(u'exactly', 5)
(u'kind', 5)
(u'afraid', 5)
(u'clear', 5)
(u'fine', 5)
(u'pretty', 5)
(u'hardly', 5)
(u'less', 5)
(u'possible', 5)
(u'together', 5)
(u'wooden', 4)
(u'full', 4)
(u'alone', 4)
(u'wonderfully', 4)
(u'natural', 4)
(u'late', 4)
(u'pleasant', 4)
(u'comfortable', 4)
(u'common', 4)
(u'enough', 4)
(u'however', 4)
(u'present', 4)
(u'almost', 4)
(u'different', 4)
(u'perhaps', 4)
(u'unfortunate', 4)
(u'just', 4)
(u'right', 4)
(u'dead', 4)
(u'about', 4)
(u'happy', 4)
(u'true', 4)
Marlitt_Wister_Countess_Gisela_corrected_4_10_2018.txt
THING AS APPOS OR NPADVMOD
(u'-PRON-', 3)
OTHER THING
(u'-PRON-', 26)
(u'not', 13)
(u'little', 10)
(u'so', 8)
(u'such', 4)
Marlitt_Wister_OMS_translation_cleaned_110617.txt
THING AS APPOS OR NPADVMOD
OTHER THING
(u'-PRON-', 29)
(u'such', 11)
(u'not', 10)
(u'little', 9)
(u'there', 6)
(u'all', 5)
(u'how', 5)
(u'poor', 5)
(u'old', 4)
(u'which', 4)

Both in Jane Eyre and Dickens words like "poor" and "little" are more likely to occure with thing as npadvmod or appos. But we are getting hardly anything for Marlitt... perhaps just not enough data.

Next I check passages with appos and npadvmod in Marlitt to see whether "thing" refers to a person there and whether it has the same connotations in Jane Eyre. It will also be good to just look at passages in JE and Dickens, where thing (as appos or npadvmod) appears together with adjectives like "little" and "poor" to check whether both authors are doing the same thing.

As we see below, in OMS "thing" as npadvmod is 3/4 times a person, and as such always negative or pitiful: stupid, poor, ungrateful. Why would OMS (or English translation of OMS) be more influenced by JE than Gisela, which was written a year later? What are the equivalents of these sentences in German?

In [28]:
for t in texts:
    if re.search('Marlitt', t['file_name']):
        print '****' + t['file_name'] + '****'
        print
        sents_marlitt = []
        for i, s in enumerate(t['spacy_doc'].sents):
            for token in s:
                if token.lemma_ == 'thing' and (token.dep_ == 'appos' or token.dep_ == 'npadvmod'):
                    print '-------'+str(i)+'----'+token.dep_+'--------'
                    print s
                    sents_marlitt.append(s)
                    print '--------------------'
                    print
        print 'sentences selected', str(len(sents_marlitt))
        print
****Marlitt_Wister_Countess_Gisela_corrected_4_10_2018.txt****

-------804----appos--------
Oh, you poor things!
--------------------

-------930----appos--------
And beneath, upon the white tablecloth, lay slates, writing-books, pencils, things that any one might have, if they wanted them: there was no need for the Christ-child to come down from heaven to bring those!
--------------------

-------1054----npadvmod--------
One thing more, dearest Fräulein von Zweiflingen: of course this is the last time Gisela and I shall ever appear in this saintly parsonage!"
--------------------

-------1151----appos--------
Its walls were covered with capital antique frescoes from biblical history,— “Horrible things that she could not see without frightful dreams of them at night,” said Frau von Herbeck shudderingly, as she refused to accompany her hither.
--------------------

-------2971----npadvmod--------
“Apropos, one thing more, darling child,” cried the Baroness, before the door had closed upon her stepdaughter.
--------------------

sentences selected 5

****Marlitt_Wister_OMS_translation_cleaned_110617.txt****

-------424----npadvmod--------
She does not shed a tear! Ungrateful thing!
--------------------

-------550----npadvmod--------
Come with me to the servants’ room,—nobody wants you here now, poor thing!
--------------------

-------591----npadvmod--------
Her pale little lips quivered feverishly, and she clutched convulsively the old cook’s skirt. "Oh, long, long ago, you stupid thing!
--------------------

-------998----npadvmod--------
How could you attempt such a thing, with no knowledge of drawing?
--------------------

sentences selected 4

Additionally, below I get all the sentences from Jane Eyre and David Copperfield, where "thing" dependency is an appos or npadvmod and additional words bellitlement and pity, "poor" or "little," appear.

In [29]:
for t in texts:
    if re.search('Dickens', t['file_name']) or re.search('Bront', t['file_name']):
        print '****' + t['file_name'] + '****'
        print
        for i, s in enumerate(t['spacy_doc'].sents):
            tokens = []
            for token in s:
                tokens.append(token.lemma_)
                if token.lemma_ == 'thing' and (token.dep_ == 'appos' or token.dep_ == 'npadvmod'):
                    if 'poor' in tokens or 'little' in tokens:
                        print '-------'+str(i)+'----'+token.dep_+'--------'
                        print s
                        print
                        print '--------------------'
                        print
****Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt****

-------522----npadvmod--------
"Because you're such a queer, frightened, shy little thing.

--------------------

-------538----npadvmod--------
"As you do, Bessie?" "I don't dislike you, Miss; I believe I am fonder of you than of all the others." "You don't show it." "You little sharp thing!

--------------------

-------637----appos--------
I was still looking at them, and also at intervals examining the teachers -- none of whom precisely pleased me; for the stout one was a little coarse, the dark one not a little fierce, the foreigner harsh and grotesque, and Miss Miller, poor thing! looked purple, weather-beaten, and over-worked -- when, as my eye wandered from face to face, the whole school rose simultaneously, as if moved by a common spring.

--------------------

-------841----appos--------
The other teachers, poor things, were generally themselves too much dejected to attempt the task of cheering others.

--------------------

-------2696----appos--------
Poor, puny things, not fit to stir a step beyond papa's park gates: nor to go even so far without mama's permission and guardianship! Creatures so absorbed in care about their pretty faces, and their white hands, and their small feet; as if a man had anything to do with beauty!

--------------------

-------5884----appos--------
I thought more o' th' childer nor of mysel: poor things!

--------------------

****Dickens_Charles_The_Personal_History_of_David_Copperfield_PG_43111.txt****

-------866----npadvmod--------
Some time after he was in his hammock that night, I heard him myself repeat to Ham, "Poor thing!

--------------------

-------2217----appos--------
As if this poor little innocent in its cradle had ever done any harm to you or anybody else, you jealous thing!" said she.

--------------------

-------9126----npadvmod--------
"Wasn't he fed, poor thing?

--------------------

-------9787----npadvmod--------
And in that short time! "Mrs. Markleham," said the Doctor, "was quite vexed about him, poor thing; so we have got him at home again; and we have bought him a little Patent place, which agrees with him much better.

--------------------

-------15540----appos--------
"Married a young lady of that part, with a very good little property, poor thing.

--------------------

It seems there might be a difference in the emotions and value conveyed by use of "thing" in relation to a person in Jane Eyre, David Copperfield, and Wister's translations Marlitt's works. "Thing" seems to be used as a term of diminishment by all authors, but while in Jane Eyre it appears to be pitying (dominance of "poor little thing") in the other works it seems to be straight up negative ("ungrateful thing," for instance). Here I look at the adjectives and adverbs appearing in the sentences with these instances of "thing," where "thing" is appos or npadvmod.

In [30]:
from collections import defaultdict, Counter
In [30]:
for t in texts:
    adjv = []
    print
    print t['file_name']
    for s in t['spacy_doc'].sents:
        for token in s:
            if token.lemma_ == 'thing':
                if token.dep_ == 'appos' or token.dep_ == 'npadvmod':
                    for token in s:
                        if token.pos_ == 'ADJ' or token.pos_ == 'ADV':
                            adjv.append(token.lemma_)
    
    
    for w in Counter(adjv).most_common(20):
        print w[0], w[1]
Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt
not 12
-PRON- 10
all 4
little 4
poor 4
good 4
own 3
only 3
as 2
now 2
fine 2
perpetual 2
other 2
which 2
new 2
such 2
sullied 2
so 2
unhealthy 1
just 1

Dickens_Charles_The_Personal_History_of_David_Copperfield_PG_43111.txt
-PRON- 16
now 10
not 7
that 6
much 5
ever 5
more 5
poor 5
why 5
so 5
little 4
then 4
such 3
good 3
domestic 2
young 2
complete 2
away 2
there 2
very 2

Marlitt_Wister_Countess_Gisela_corrected_4_10_2018.txt
-PRON- 3
that 2
more 2
poor 1
saintly 1
last 1
biblical 1
there 1
antique 1
shudderingly 1
frightful 1
not 1
horrible 1
dear 1
white 1
ever 1

Marlitt_Wister_OMS_translation_cleaned_110617.txt
long 2
poor 1
ungrateful 1
little 1
now 1
old 1
ago 1
feverishly 1
here 1
how 1
stupid 1
not 1
such 1
-PRON- 1
pale 1
convulsively 1

Now answering Professor Tatlock's question about Rochester using "thing" as a word of uncertainty. I search for instances of "thing," where it appears together with "see" and "look" lemmas.

Results suggest that "thing" does not appear as a word suggesting Rochester's uncertainty any more than it suggests Jane's uncertainty. It would confirm that the Rochester-specific use of "thing" is as a term to belittle Jane.

In [31]:
for t in texts:
    if re.search('Bront', t['file_name']):
        print '****' + t['file_name'] + '****'
        print
        for i, s in enumerate(t['spacy_doc'].sents):
            tokens = []
            for token in s:
                tokens.append(token.lemma_)
            if 'thing' in tokens:
                if 'see' in tokens or 'look' in tokens:
                        print '-------'+str(i)+'--------'
                        print s
                        print
                        print '--------------------'
                        print
****Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt****

-------22--------
Why have I alluded to this man? I have alluded to him, Reader, because I think I see in him an intellect profounder and more unique than his contemporaries have yet recognised; because I regard him as the first social regenerator of the day -- as the very master of that working corps who would restore to rectitude the warped system of things; because I think no commentator on his writings has yet found the comparison that suits him, the terms which rightly characterise his talent.

--------------------

-------119--------
She's an underhand little thing: I never saw a girl of her age with so much cover."

--------------------

-------204--------
The next thing I remember is, waking up with a feeling as if I had had a frightful nightmare, and seeing before me a terrible red glare, crossed with thick black bars.

--------------------

-------226--------
I heard her say -- "Sarah, come and sleep with me in the nursery; I daren't for my life be alone with that poor child to-night: she might die; it's such a strange thing she should have that fit: I wonder if she saw anything.

--------------------

-------441--------
My second daughter, Augusta, went with her mama to visit the school, and on her return she exclaimed: 'Oh, dear papa, how quiet and plain all the girls at Lowood look, with their hair combed behind their ears, and their long pinafores, and those little holland pockets outside their frocks -- they are almost like poor people's children! and,' said she, 'they looked at my dress and mama's, as if they had never seen a silk gown before.'" "This is the state of things I quite approve," returned Mrs. Reed; "had I sought all England over, I could scarcely have found a system more exactly fitting a child like Jane Eyre.

--------------------

-------519--------
"You are a strange child, Miss Jane," she said, as she looked down at me; "a little roving, solitary thing: and you are going to school, I suppose?" I nodded. "

--------------------

-------637--------
I was still looking at them, and also at intervals examining the teachers -- none of whom precisely pleased me; for the stout one was a little coarse, the dark one not a little fierce, the foreigner harsh and grotesque, and Miss Miller, poor thing! looked purple, weather-beaten, and over-worked -- when, as my eye wandered from face to face, the whole school rose simultaneously, as if moved by a common spring.

--------------------

-------1379--------
Having opened my chamber window, and seen that I left all things straight and neat on the toilet table, I ventured forth.

--------------------

-------1800--------
As I saw them with the spiritual eye, before I attempted to embody them, they were striking; but my hand would not second my fancy, and in each case it had wrought out but a pale portrait of the thing I had conceived.

--------------------

-------3563--------
"Not five shillings, sir; nor five pence." "Just let me look at the cash." "No, sir; you are not to be trusted." "Jane!" "Sir?" "Promise me one thing."

--------------------

-------4731--------
I wanted to see the invisible thing on which, as we went along, he appeared to fasten a glance fierce and fell.

--------------------

-------5203--------
I was surly; but the thing would not go: it stood by me with strange perseverance, and looked and spoke with a sort of authority

--------------------

-------5311--------
Consider that eye: consider the resolute, wild, free thing looking out of it, defying me, with more than courage -- with a stern triumph.

--------------------

-------6878--------
As I looked at his lofty forehead, still and pale as a white stone -- at his fine lineaments fixed in study -- I comprehended all at once that he would hardly make a good husband: that it would be a trying thing to be his wife.

--------------------

Something

In the two cells below finding paragraphs with more than one "something" in them.

In [32]:
import re

something_paragraphs = re.split('\n\n+', text)
something_p_numbers = []

for j, sp in enumerate(something_paragraphs):
    
    s_tokens = []

    spacy_sp = nlp(sp)

    for st in spacy_sp:
        s_tokens.append(t)

        if st.lemma_ == 'something':
            #print j, st.dep_
            something_p_numbers.append(j)
In [35]:
print '(paragraph number, number of "somethings")'
something_paragraphs = []
for sn in Counter(something_p_numbers).most_common():
    if float(sn[1]) > float('1'):
       
        print sn
        something_paragraphs.append(sn[0])
(paragraph number, number of "somethings")
(1565, 3)
(618, 2)
(2795, 2)
(3308, 2)
(2322, 2)
(443, 2)
(2547, 2)

Now I print out these paragraphs.

In [27]:
for j, sp in enumerate(paragraphs):
    if j in something_paragraphs:
        print
        print '[paragraph '+str(j)+']', sp
        print
[paragraph 443] The only marked event of the afternoon was, that I saw the girl with whom
I had conversed in the verandah dismissed in disgrace by Miss Scatcherd
from a history class, and sent to stand in the middle of the large
schoolroom.  The punishment seemed to me in a high degree ignominious,
especially for so great a girl   --   she looked thirteen or upwards.  I
expected she would show signs of great distress and shame; but to my
surprise she neither wept nor blushed: composed, though grave, she stood,
the central mark of all eyes.  "How can she bear it so quietly   --   so
firmly?" I asked of myself.  "Were I in her place, it seems to me I
should wish the earth to open and swallow me up.  She looks as if she
were thinking of something beyond her punishment   --   beyond her situation:
of something not round her nor before her.  I have heard of day-dreams   --   is
she in a day-dream now?  Her eyes are fixed on the floor, but I am sure
they do not see it   --   her sight seems turned in, gone down into her heart:
she is looking at what she can remember, I believe; not at what is really
present.  I wonder what sort of a girl she is   --   whether good or naughty."


[paragraph 618] Miss Temple had always something of serenity in her air, of state in her
mien, of refined propriety in her language, which precluded deviation
into the ardent, the excited, the eager: something which chastened the
pleasure of those who looked on her and listened to her, by a controlling
sense of awe; and such was my feeling now: but as to Helen Burns, I was
struck with wonder.


[paragraph 1565] But in other points, as well as this, I was growing very lenient to my
master: I was forgetting all his faults, for which I had once kept a
sharp look-out.  It had formerly been my endeavour to study all sides of
his character: to take the bad with the good; and from the just weighing
of both, to form an equitable judgment.  Now I saw no bad.  The sarcasm
that had repelled, the harshness that had startled me once, were only
like keen condiments in a choice dish: their presence was pungent, but
their absence would be felt as comparatively insipid.  And as for the
vague something   --   was it a sinister or a sorrowful, a designing or a
desponding expression?   --   that opened upon a careful observer, now and
then, in his eye, and closed again before one could fathom the strange
depth partially disclosed; that something which used to make me fear and
shrink, as if I had been wandering amongst volcanic-looking hills, and
had suddenly felt the ground quiver and seen it gape: that something, I,
at intervals, beheld still; and with throbbing heart, but not with
palsied nerves.  Instead of wishing to shun, I longed only to dare   --   to
divine it; and I thought Miss Ingram happy, because one day she might
look into the abyss at her leisure, explore its secrets and analyse their
nature.


[paragraph 2322] I did, and I could not quite comprehend it: it made me giddy.  The
feeling, the announcement sent through me, was something stronger than
was consistent with joy   --   something that smote and stunned.  It was, I
think almost fear.


[paragraph 2547] "I was: I know that; and you hinted a while ago at something which had
happened in my absence:   --   nothing, probably, of consequence; but, in
short, it has disturbed you.  Let me hear it.  Mrs. Fairfax has said
something, perhaps? or you have overheard the servants talk?   --   your
sensitive self-respect has been wounded?"


[paragraph 2795] "When once I had pressed the frail shoulder, something new   --   a fresh sap
and sense   --   stole into my frame.  It was well I had learnt that this elf
must return to me   --   that it belonged to my house down below   --   or I could
not have felt it pass away from under my hand, and seen it vanish behind
the dim hedge, without singular regret.  I heard you come home that
night, Jane, though probably you were not aware that I thought of you or
watched for you.  The next day I observed you   --   myself unseen   --   for half-an-
hour, while you played with Adele in the gallery.  It was a snowy day, I
recollect, and you could not go out of doors.  I was in my room; the door
was ajar: I could both listen and watch.  Adele claimed your outward
attention for a while; yet I fancied your thoughts were elsewhere: but
you were very patient with her, my little Jane; you talked to her and
amused her a long time.  When at last she left you, you lapsed at once
into deep reverie: you betook yourself slowly to pace the gallery.  Now
and then, in passing a casement, you glanced out at the thick-falling
snow; you listened to the sobbing wind, and again you paced gently on and
dreamed.  I think those day visions were not dark: there was a
pleasurable illumination in your eye occasionally, a soft excitement in
your aspect, which told of no bitter, bilious, hypochondriac brooding:
your look revealed rather the sweet musings of youth when its spirit
follows on willing wings the flight of Hope up and on to an ideal heaven.
The voice of Mrs. Fairfax, speaking to a servant in the hall, wakened
you: and how curiously you smiled to and at yourself, Janet!  There was
much sense in your smile: it was very shrewd, and seemed to make light of
your own abstraction.  It seemed to say   --   'My fine visions are all very
well, but I must not forget they are absolutely unreal.  I have a rosy
sky and a green flowery Eden in my brain; but without, I am perfectly
aware, lies at my feet a rough tract to travel, and around me gather
black tempests to encounter.'  You ran downstairs and demanded of Mrs.
Fairfax some occupation: the weekly house accounts to make up, or
something of that sort, I think it was.  I was vexed with you for getting
out of my sight.


[paragraph 3308] "While something in me," he went on, "is acutely sensible to her charms,
something else is as deeply impressed with her defects: they are such
that she could sympathise in nothing I aspired to   --   co-operate in nothing
I undertook.  Rosamond a sufferer, a labourer, a female apostle?  Rosamond
a missionary's wife?  No!"

"Something" as subject.

Below I get all the sentences in Jane Eyre, where "something" appears as the subject.

This is almost always Jane struggling to name what she is observing.

In [36]:
        for i, s in enumerate(doc.sents):
            tokens = []
            for token in s:
                tokens.append(token.lemma_)
                if token.lemma_ == 'something' and (token.dep_ == 'nsubj'):
                        print '-------'+str(i)+'----'+token.dep_+'--------'
                        print s
                        print
                        print '--------------------'
                        print
-------179----nsubj--------
My heart beat thick, my
head grew hot; a sound filled my ears, which I deemed the rushing of
wings; something seemed near me; I was oppressed, suffocated: endurance
broke down; I rushed to the door and shook the lock in desperate effort.


--------------------

-------231----nsubj--------
Something passed her, all dressed in white, and vanished"   --   "A great
black dog behind him"   --   "Three loud raps on the chamber door"   --   "A light in
the churchyard just over his grave," etc.

--------------------

-------349----nsubj--------
I say scarcely voluntary, for it seemed as if my
tongue pronounced words without my will consenting to their utterance:
something spoke out of me over which I had no control.



--------------------

-------501----nsubj--------
Something of vengeance I had tasted for the first time; as aromatic wine
it seemed, on swallowing, warm and racy: its after-flavour, metallic and
corroding, gave me a sensation as if I had been poisoned.  

--------------------

-------2150----nsubj--------
Something gurgled and moaned.  

--------------------

-------2156----nsubj--------
Something creaked: it was a door ajar; and that door was Mr. Rochester's,
and the smoke rushed in a cloud from thence.  

--------------------

-------3142----nsubj--------
Another step stamped on the flooring above and something fell; and there
was silence.



--------------------

-------3899----nsubj--------
I
said   --   or something in me said for me, and in spite of me   --   

"Thank you, Mr. Rochester, for your great kindness.  

--------------------

-------4316----nsubj--------
"In that field, Adele, I was walking late one evening about a fortnight
since   --   the evening of the day you helped me to make hay in the orchard
meadows; and, as I was tired with raking swaths, I sat down to rest me on
a stile; and there I took out a little book and a pencil, and began to
write about a misfortune that befell me long ago, and a wish I had for
happy days to come: I was writing away very fast, though daylight was
fading from the leaf, when something came up the path and stopped two
yards off me.  

--------------------

-------4447----nsubj--------
Something had happened
which I could not comprehend; no one knew of or had seen the event but
myself: it had taken place the preceding night.  

--------------------

-------4540----nsubj--------
Then, sir, listen.  You were from home last night?"

"I was: I know that; and you hinted a while ago at something which had
happened in my absence:   --   nothing, probably, of consequence; but, in
short, it has disturbed you.  

--------------------

-------6435----nsubj--------
"Strange indeed!" I could not help ejaculating.

"While something in me," he went on, "is acutely sensible to her charms,
something else is as deeply impressed with her defects: they are such
that she could sympathise in nothing I aspired to   --   co-operate in nothing
I undertook.  

--------------------

-------6493----nsubj--------
What he suddenly saw on this blank paper, it was
impossible for me to tell; but something had caught his eye.  

--------------------

-------7149----nsubj--------
Had I attended to the suggestions of pride and ire, I should
immediately have left him; but something worked within me more strongly
than those feelings could.  

--------------------

Something as conjunct.

In the beginning of this notebook, we have seen that "something" in Jane Eyre appears especially often as a conjuct.

Here I check in what contexts does Spacy tag "something" dependency as conjunct, and find out that it is almost always in frases like This almost always appears as "something like it," "something of that sort," or something of that sort.

In [29]:
for i, s in enumerate(doc.sents):
            tokens = []
            for token in s:
                tokens.append(token.lemma_)
                if token.lemma_ == 'something' and (token.dep_ == 'conj'):
                        print '-------'+str(i)+'----'+token.dep_+'--------'
                        print s
                        print
                        print '--------------------'
                        print
-------458----conj--------
My look or
something else must have struck her as offensive, for she spoke with
extreme though suppressed irritation.  

--------------------

-------1885----conj--------
I ought to have replied that
it was not easy to give an impromptu answer to a question about
appearances; that tastes mostly differ; and that beauty is of little
consequence, or something of that sort."



--------------------

-------2210----conj--------
"But you heard an odd laugh?  You have heard that laugh before, I should
think, or something like it?"

"Yes, sir: there is a woman who sews here, called Grace Poole,   --   she
laughs in that way.  

--------------------

-------2771----conj--------
What
charade Colonel Dent and his party played, what word they chose, how they
acquitted themselves, I no longer remember; but I still see the
consultation which followed each scene: I see Mr. Rochester turn to Miss
Ingram, and Miss Ingram to him; I see her incline her head towards him,
till the jetty curls almost touch his shoulder and wave against his
cheek; I hear their mutual whisperings; I recall their interchanged
glances; and something even of the feeling roused by the spectacle
returns in memory at this moment.



--------------------

-------3166----conj--------
She's an excitable,
nervous person: she construed her dream into an apparition, or something
of that sort, no doubt; and has taken a fit with fright.  

--------------------

-------3891----conj--------
Tell me now,
fairy as you are   --   can't you give me a charm, or a philter, or something
of that sort, to make me a handsome man?"



--------------------

-------5166----conj--------
You ran downstairs and demanded of Mrs.
Fairfax some occupation: the weekly house accounts to make up, or
something of that sort, I think it was.  I was vexed with you for getting
out of my sight.



--------------------

-------7719----conj--------
It is time some one undertook to rehumanise you," said I, parting his
thick and long uncut locks; "for I see you are being metamorphosed into a
lion, or something of that sort.  

--------------------

How often is "something" lemma used in different novels?

In [44]:
print
for t in texts:
    print t['file_name']
    words = []
    somethings = []
    for token in t['spacy_doc']:
            words.append(token)
            if token.lemma_ == 'something':
                    somethings.append(token)
    rel_freq = (float(len(somethings))/float(len(words)))*1000
    print 'words:', str(len(words)), 'something:', str(len(somethings)), 'something per 1000 words:'+str(rel_freq)
    print
Bront_Charlotte_Jane_Eyre_An_Autobiography_PG_1260.txt
words: 231204 something: 136 something per 1000 words:0.588225117213

Dickens_Charles_The_Personal_History_of_David_Copperfield_PG_43111.txt
words: 445237 something: 256 something per 1000 words:0.574974676408

Marlitt_Wister_Countess_Gisela_corrected_4_10_2018.txt
words: 146392 something: 42 something per 1000 words:0.286900923548

Marlitt_Wister_OMS_translation_cleaned_110617.txt
words: 109749 something: 45 something per 1000 words:0.410026515048