├── .gitignore ├── README.md ├── poems ├── keats.la_belle_dame_sans_merci.txt └── shakespeare_sonnets │ ├── sonnet-001.txt │ ├── sonnet-002.txt │ ├── sonnet-003.txt │ ├── sonnet-004.txt │ ├── sonnet-005.txt │ ├── sonnet-006.txt │ ├── sonnet-007.txt │ ├── sonnet-008.txt │ ├── sonnet-009.txt │ ├── sonnet-010.txt │ ├── sonnet-011.txt │ ├── sonnet-012.txt │ ├── sonnet-013.txt │ ├── sonnet-014.txt │ ├── sonnet-015.txt │ ├── sonnet-016.txt │ ├── sonnet-017.txt │ ├── sonnet-018.txt │ ├── sonnet-019.txt │ ├── sonnet-020.txt │ ├── sonnet-021.txt │ ├── sonnet-022.txt │ ├── sonnet-023.txt │ ├── sonnet-024.txt │ ├── sonnet-025.txt │ ├── sonnet-026.txt │ ├── sonnet-027.txt │ ├── sonnet-028.txt │ ├── sonnet-029.txt │ ├── sonnet-030.txt │ ├── sonnet-031.txt │ ├── sonnet-032.txt │ ├── sonnet-033.txt │ ├── sonnet-034.txt │ ├── sonnet-035.txt │ ├── sonnet-036.txt │ ├── sonnet-037.txt │ ├── sonnet-038.txt │ ├── sonnet-039.txt │ ├── sonnet-040.txt │ ├── sonnet-041.txt │ ├── sonnet-042.txt │ ├── sonnet-043.txt │ ├── sonnet-044.txt │ ├── sonnet-045.txt │ ├── sonnet-046.txt │ ├── sonnet-047.txt │ ├── sonnet-048.txt │ ├── sonnet-049.txt │ ├── sonnet-050.txt │ ├── sonnet-051.txt │ ├── sonnet-052.txt │ ├── sonnet-053.txt │ ├── sonnet-054.txt │ ├── sonnet-055.txt │ ├── sonnet-056.txt │ ├── sonnet-057.txt │ ├── sonnet-058.txt │ ├── sonnet-059.txt │ ├── sonnet-060.txt │ ├── sonnet-061.txt │ ├── sonnet-062.txt │ ├── sonnet-063.txt │ ├── sonnet-064.txt │ ├── sonnet-065.txt │ ├── sonnet-066.txt │ ├── sonnet-067.txt │ ├── sonnet-068.txt │ ├── sonnet-069.txt │ ├── sonnet-070.txt │ ├── sonnet-071.txt │ ├── sonnet-072.txt │ ├── sonnet-073.txt │ ├── sonnet-074.txt │ ├── sonnet-075.txt │ ├── sonnet-076.txt │ ├── sonnet-077.txt │ ├── sonnet-078.txt │ ├── sonnet-079.txt │ ├── sonnet-080.txt │ ├── sonnet-081.txt │ ├── sonnet-082.txt │ ├── sonnet-083.txt │ ├── sonnet-084.txt │ ├── sonnet-085.txt │ ├── sonnet-086.txt │ ├── sonnet-087.txt │ ├── sonnet-088.txt │ ├── sonnet-089.txt │ ├── sonnet-090.txt │ ├── sonnet-091.txt │ ├── sonnet-092.txt │ ├── sonnet-093.txt │ ├── sonnet-094.txt │ ├── sonnet-095.txt │ ├── sonnet-096.txt │ ├── sonnet-097.txt │ ├── sonnet-098.txt │ ├── sonnet-099.txt │ ├── sonnet-100.txt │ ├── sonnet-101.txt │ ├── sonnet-102.txt │ ├── sonnet-103.txt │ ├── sonnet-104.txt │ ├── sonnet-105.txt │ ├── sonnet-106.txt │ ├── sonnet-107.txt │ ├── sonnet-108.txt │ ├── sonnet-109.txt │ ├── sonnet-110.txt │ ├── sonnet-111.txt │ ├── sonnet-112.txt │ ├── sonnet-113.txt │ ├── sonnet-114.txt │ ├── sonnet-115.txt │ ├── sonnet-116.txt │ ├── sonnet-117.txt │ ├── sonnet-118.txt │ ├── sonnet-119.txt │ ├── sonnet-120.txt │ ├── sonnet-121.txt │ ├── sonnet-122.txt │ ├── sonnet-123.txt │ ├── sonnet-124.txt │ ├── sonnet-125.txt │ ├── sonnet-126.txt │ ├── sonnet-127.txt │ ├── sonnet-128.txt │ ├── sonnet-129.txt │ ├── sonnet-130.txt │ ├── sonnet-131.txt │ ├── sonnet-132.txt │ ├── sonnet-133.txt │ ├── sonnet-134.txt │ ├── sonnet-135.txt │ ├── sonnet-136.txt │ ├── sonnet-137.txt │ ├── sonnet-138.txt │ ├── sonnet-139.txt │ ├── sonnet-140.txt │ ├── sonnet-141.txt │ ├── sonnet-142.txt │ ├── sonnet-143.txt │ ├── sonnet-144.txt │ ├── sonnet-145.txt │ ├── sonnet-146.txt │ ├── sonnet-147.txt │ ├── sonnet-148.txt │ ├── sonnet-149.txt │ ├── sonnet-150.txt │ ├── sonnet-151.txt │ ├── sonnet-152.txt │ ├── sonnet-153.txt │ └── sonnet-154.txt ├── poesy ├── __init__.py ├── poesy.py └── schemes │ └── rhyme_schemes.txt ├── requirements.txt └── setup.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.egg-info 3 | .DS_Store 4 | .ipynb_checkpoints 5 | .pypirc 6 | MANIFEST.in 7 | build/ 8 | dist/ 9 | py_poetics.egg-info/ 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Poesy 2 | 3 | ## Poetic processing, for Python ## 4 | 5 | Code developed in the Stanford Literary Lab's "Transhistorical Poetry Project" by Ryan Heuser (@quadrismegistus), J.D. Porter, Jonathan Sensenbaugh, Justin Tackett, Mark Algee-Hewitt, and Maria Kraxenberger. Cleaned and modified from [its original form](http://github.com/quadrismegistus/litlab-poetry) in 2018. 6 | 7 | Poesy is built on [Prosodic](http://github.com/quadrismegistus/prosodic), a metrical-phonological parser written in Python. 8 | 9 | ## Demo 10 | 11 | For a demo of poesy's installation and in action, see [this Colab notebook](https://colab.research.google.com/drive/1pl0qY8bi-QD_peC2mQVNCG4lxICxImwy?usp=sharing). 12 | 13 | ## Installation 14 | 15 | ### 1. Insteall espeak 16 | 17 | Install espeak, free TTS software, to 'sound out' unknown words. See [here](http://espeak.sourceforge.net/download.html) for all downloads. 18 | 19 | * On Linux: ```apt-get install espeak``` 20 | 21 | * On Mac: 22 | * Install [homebrew](brew.sh) if not already installed. 23 | 24 | * Type into the Terminal app: `brew install espeak` 25 | 26 | * On Windows: 27 | Download and install from http://espeak.sourceforge.net/download.html. 28 | 29 | ### 2. Install Poesy 30 | 31 | Install: 32 | 33 | ``` 34 | pip install -U git+https://github.com/quadrismegistus/poesy 35 | ``` 36 | 37 | ## Usage 38 | 39 | ### Create a poem: `poem = Poem()` 40 | 41 | ```python 42 | from poesy import Poem 43 | 44 | # create a Poem object by string 45 | poem = Poem(""" 46 | When in the chronicle of wasted time 47 | I see descriptions of the fairest wights, 48 | And beauty making beautiful old rhyme 49 | In praise of ladies dead and lovely knights, 50 | Then, in the blazon of sweet beauty's best, 51 | Of hand, of foot, of lip, of eye, of brow, 52 | I see their antique pen would have express'd 53 | Even such a beauty as you master now. 54 | So all their praises are but prophecies 55 | Of this our time, all you prefiguring; 56 | And, for they look'd but with divining eyes, 57 | They had not skill enough your worth to sing: 58 | For we, which now behold these present days, 59 | Had eyes to wonder, but lack tongues to praise. 60 | """) 61 | 62 | # or create a Poem object by pointing to a text file 63 | la_belle_dame = Poem(fn='poems/keats.la_belle_dame_sans_merci.txt') 64 | ``` 65 | 66 | ### Summary of annotations: `poem.summary()` 67 | 68 | A quick tabular summary of most of the annotations Poesy has made on the poem. 69 | 70 | (#s,#l) parse rhyme #feet #syll #parse 71 | --------- ------------------------------------------------ ------- ------- ------- -------- 72 | 1.1 WHEN|in.the|CHRON|i|CLE*|of|WAST|ed|TIME a 5 10 2 73 | 1.2 i|SEE|de|SCRIP|tions|OF*|the|FAI|rest|WIGHTS b 5 10 1 74 | 1.3 and|BEAU|ty|MAK|ing|BEAU|ti|FUL*|old*|RHYME a 5 10 3 75 | 1.4 in|PRAISE|of|LAD|ies|DEAD|and|LOVE|ly|KNIGHTS b 5 10 1 76 | 1.5 THEN|in.the|BLA|zon|OF*|sweet*|BEAU|tys|BEST c 5 10 8 77 | 1.6 of|HAND|of|FOOT|of|LIP|of|EYE|of|BROW d 5 10 1 78 | 1.7 i|SEE|their.an*|TIQUE.PEN*|would|HAVE|ex|PRESSD c 4 10 5 79 | 1.8 EV|en|SUCH*|a|BEAU|ty|AS*|you|MAS|ter|NOW d 6 11 1 80 | 1.9 so|ALL|their|PRAIS|es|ARE*|but|PRO|phe|CIES* e 5 10 3 81 | 1.1 OF*|this.our|TIME|all|YOU*|pre|FIG|ur|ING* f 5 10 15 82 | 1.11 and.for|THEY.LOOKD*|but|WITH*|di|VIN|ing|EYES e 4 10 3 83 | 1.12 THEY|had.not|SKILL|en|OUGH|your|WORTH|to|SING f 5 10 2 84 | 1.13 for|WE|which|NOW|be|HOLD|these|PRE|sent|DAYS e 5 10 1 85 | 1.14 had|EYES|to|WON|der|BUT*|lack*|TONGUES|to|PRAISE e 5 10 3 86 | 87 | 88 | estimated schema 89 | ---------- 90 | meter: Iambic 91 | feet: Pentameter 92 | syllables: 10 93 | rhyme: Sonnet, Shakespearean (abab cdcd efefgg) 94 | 95 | ### Statistics on annotations: `poem.statd` 96 | 97 | This dictionary combines the following dictionaries. 98 | 99 | #### 1. Estimated line scheme (in feet): `poem.schemed_beat` 100 | 101 | ``` 102 | {'scheme': (5,), 103 | 'scheme_diff': 2, 104 | 'scheme_length': 1, 105 | 'scheme_repr': 'Pentameter', 106 | 'scheme_type': 'Invariable'} 107 | ``` 108 | 109 | #### 2. Estimated line scheme (in syllables): `poem.schemed_syll` 110 | 111 | ``` 112 | {'scheme': (10,), 113 | 'scheme_diff': 1, 114 | 'scheme_length': 1, 115 | 'scheme_repr': 10, 116 | 'scheme_type': 'Invariable'} 117 | ``` 118 | 119 | #### 3. Estimated metrical scheme: `poem.meterd` 120 | 121 | ``` 122 | {'ambiguity': 3.5, 123 | 'constraint_TOTAL': 0.14285714285714285, 124 | 'constraint_footmin-f-resolution': 0.007142857142857143, 125 | 'constraint_footmin-w-resolution': 0.0, 126 | 'constraint_strength_w=>-p': 0.0, 127 | 'constraint_stress_s=>-u': 0.10714285714285714, 128 | 'constraint_stress_w=>-p': 0.02857142857142857, 129 | 'length_avg_line': 10.071428571428571, 130 | 'length_avg_parse': 10.071428571428571, 131 | 'mpos_s': 0.5, 132 | 'mpos_ss': 0.007142857142857143, 133 | 'mpos_w': 0.4928571428571429, 134 | 'perc_lines_ending_s': 1.0, 135 | 'perc_lines_fourthpos_s': 0.8571428571428571, 136 | 'perc_lines_fourthpos_w': 0.14285714285714285, 137 | 'perc_lines_starting_s': 0.14285714285714285, 138 | 'perc_lines_starting_w': 0.8571428571428571, 139 | 'type_foot': 'binary', 140 | 'type_head': 'final', 141 | 'type_scheme': 'iambic'} 142 | ``` 143 | 144 | #### 4. Estimated rhyme scheme: `poem.rhymed` 145 | 146 | ``` 147 | {'rhyme_scheme': ('Sonnet, Shakespearean', 'abab cdcd efefgg'), 148 | 'rhyme_scheme_accuracy': 0.6363636363636364, 149 | 'rhyme_scheme_form': 'abab cdcd efefgg', 150 | 'rhyme_scheme_name': 'Sonnet, Shakespearean', 151 | 'rhyme_schemes': [(('Sonnet, Shakespearean', 'abab cdcd efefgg'), 152 | 0.6363636363636364), 153 | (('Sonnet A', 'abab cdcd eefeff'), 0.6153846153846154), 154 | (('Sonnet E', 'abab cbcd cdedee'), 0.4117647058823529), 155 | (('Quatrain And Triplet', 'ababccc'), 0.4), 156 | (('Sonnet C', 'ababacdc edefef'), 0.4)]} 157 | ``` 158 | 159 | ### Iterate over lines: `poem.lined` 160 | 161 | Every poem has a number of dictionaries, each keyed to a "line ID", a tuple of `(linenum, stanzanum)`. 162 | 163 | ```python 164 | # The dictionary storing the string representation for the line: 165 | for lineid,line_str in sorted(poem.lined.items()): 166 | print(lineid,line_str) 167 | 168 | # Use this dictionary to loop over prosodic's Line objects instead 169 | for lineid,line_obj in sorted(poem.prosodic.items()): 170 | print(lineid,line_obj.bestParse()) 171 | 172 | # Other dictionaries 173 | poem.linenums # lineid -> line number within poem 174 | poem.linenums_bystanza # lineid -> line number within stanza 175 | poem.stanzanums # lineid -> stanza number 176 | poem.linelengths # lineid -> length of line 177 | poem.linelengths_bybeat # lineid -> length of line (in feet) 178 | poem.numparses # lineid -> number of plausible parses for line 179 | poem.rhymes # lineid -> rhyme scheme symbol 180 | ``` 181 | 182 | 183 | ## Configure 184 | 185 | Poesy depends on [Prosodic](http://github.com/quadrismegistus/prosodic) for metrical parsing. Prosodic stores its configuration data in `~/prosodic_data/`; the `README.txt` there has more information. 186 | 187 | By default, Poesy will use `~/prosodic_data/meters/meter_default.py` as its meter (its set of metrical constraints and behaviors). Open that file to read more details. 188 | 189 | To specify a different meter, pass a meter name to a Poem object: 190 | 191 | ```python 192 | from poesy import Poem 193 | poem = Poem(fn='poems/shakespeare_sonnets/sonnet-001.txt', 194 | meter='iambic_pentameter') 195 | ``` 196 | Or to the parse method: 197 | 198 | ```python 199 | poem.parse(meter='iambic_pentameter') 200 | ``` 201 | 202 | These will load the meter in `~/prosodic_data/meters/iambic_pentameter.py`. 203 | -------------------------------------------------------------------------------- /poems/keats.la_belle_dame_sans_merci.txt: -------------------------------------------------------------------------------- 1 | O what can ail thee, knight-at-arms, 2 | Alone and palely loitering? 3 | The sedge has withered from the lake, 4 | And no birds sing. 5 | 6 | O what can ail thee, knight-at-arms, 7 | So haggard and so woe-begone? 8 | The squirrel’s granary is full, 9 | And the harvest’s done. 10 | 11 | I see a lily on thy brow, 12 | With anguish moist and fever-dew, 13 | And on thy cheeks a fading rose 14 | Fast withereth too. 15 | 16 | I met a lady in the meads, 17 | Full beautiful—a faery’s child, 18 | Her hair was long, her foot was light, 19 | And her eyes were wild. 20 | 21 | I made a garland for her head, 22 | And bracelets too, and fragrant zone; 23 | She looked at me as she did love, 24 | And made sweet moan 25 | 26 | I set her on my pacing steed, 27 | And nothing else saw all day long, 28 | For sidelong would she bend, and sing 29 | A faery’s song. 30 | 31 | She found me roots of relish sweet, 32 | And honey wild, and manna-dew, 33 | And sure in language strange she said— 34 | ‘I love thee true’. 35 | 36 | She took me to her Elfin grot, 37 | And there she wept and sighed full sore, 38 | And there I shut her wild wild eyes 39 | With kisses four. 40 | 41 | And there she lullèd me asleep, 42 | And there I dreamed—Ah! woe betide!— 43 | The latest dream I ever dreamt 44 | On the cold hill side. 45 | 46 | I saw pale kings and princes too, 47 | Pale warriors, death-pale were they all; 48 | They cried—‘La Belle Dame sans Merci 49 | Thee hath in thrall!’ 50 | 51 | I saw their starved lips in the gloam, 52 | With horrid warning gapèd wide, 53 | And I awoke and found me here, 54 | On the cold hill’s side. 55 | 56 | And this is why I sojourn here, 57 | Alone and palely loitering, 58 | Though the sedge is withered from the lake, 59 | And no birds sing. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-001.txt: -------------------------------------------------------------------------------- 1 | FROM fairest creatures we desire increase, 2 | That thereby beauty's rose might never die, 3 | But as the riper should by time decease, 4 | His tender heir might bear his memory: 5 | But thou, contracted to thine own bright eyes, 6 | Feed'st thy light'st flame with self-substantial fuel, 7 | Making a famine where abundance lies, 8 | Thyself thy foe, to thy sweet self too cruel. 9 | Thou that art now the world's fresh ornament 10 | And only herald to the gaudy spring, 11 | Within thine own bud buriest thy content 12 | And, tender churl, makest waste in niggarding. 13 | Pity the world, or else this glutton be, 14 | To eat the world's due, by the grave and thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-002.txt: -------------------------------------------------------------------------------- 1 | When forty winters shall beseige thy brow, 2 | And dig deep trenches in thy beauty's field, 3 | Thy youth's proud livery, so gazed on now, 4 | Will be a tatter'd weed, of small worth held: 5 | Then being ask'd where all thy beauty lies, 6 | Where all the treasure of thy lusty days, 7 | To say, within thine own deep-sunken eyes, 8 | Were an all-eating shame and thriftless praise. 9 | How much more praise deserved thy beauty's use, 10 | If thou couldst answer 'This fair child of mine 11 | Shall sum my count and make my old excuse,' 12 | Proving his beauty by succession thine! 13 | This were to be new made when thou art old, 14 | And see thy blood warm when thou feel'st it cold. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-003.txt: -------------------------------------------------------------------------------- 1 | Look in thy glass, and tell the face thou viewest 2 | Now is the time that face should form another; 3 | Whose fresh repair if now thou not renewest, 4 | Thou dost beguile the world, unbless some mother. 5 | For where is she so fair whose unear'd womb 6 | Disdains the tillage of thy husbandry? 7 | Or who is he so fond will be the tomb 8 | Of his self-love, to stop posterity? 9 | Thou art thy mother's glass, and she in thee 10 | Calls back the lovely April of her prime: 11 | So thou through windows of thine age shall see 12 | Despite of wrinkles this thy golden time. 13 | But if thou live, remember'd not to be, 14 | Die single, and thine image dies with thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-004.txt: -------------------------------------------------------------------------------- 1 | Unthrifty loveliness, why dost thou spend 2 | Upon thyself thy beauty's legacy? 3 | Nature's bequest gives nothing but doth lend, 4 | And being frank she lends to those are free. 5 | Then, beauteous niggard, why dost thou abuse 6 | The bounteous largess given thee to give? 7 | Profitless usurer, why dost thou use 8 | So great a sum of sums, yet canst not live? 9 | For having traffic with thyself alone, 10 | Thou of thyself thy sweet self dost deceive. 11 | Then how, when nature calls thee to be gone, 12 | What acceptable audit canst thou leave? 13 | Thy unused beauty must be tomb'd with thee, 14 | Which, used, lives th' executor to be. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-005.txt: -------------------------------------------------------------------------------- 1 | Those hours, that with gentle work did frame 2 | The lovely gaze where every eye doth dwell, 3 | Will play the tyrants to the very same 4 | And that unfair which fairly doth excel: 5 | For never-resting time leads summer on 6 | To hideous winter and confounds him there; 7 | Sap check'd with frost and lusty leaves quite gone, 8 | Beauty o'ersnow'd and bareness every where: 9 | Then, were not summer's distillation left, 10 | A liquid prisoner pent in walls of glass, 11 | Beauty's effect with beauty were bereft, 12 | Nor it nor no remembrance what it was: 13 | But flowers distill'd though they with winter meet, 14 | Leese but their show; their substance still lives sweet. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-006.txt: -------------------------------------------------------------------------------- 1 | Then let not winter's ragged hand deface 2 | In thee thy summer, ere thou be distill'd: 3 | Make sweet some vial; treasure thou some place 4 | With beauty's treasure, ere it be self-kill'd. 5 | That use is not forbidden usury, 6 | Which happies those that pay the willing loan; 7 | That's for thyself to breed another thee, 8 | Or ten times happier, be it ten for one; 9 | Ten times thyself were happier than thou art, 10 | If ten of thine ten times refigured thee: 11 | Then what could death do, if thou shouldst depart, 12 | Leaving thee living in posterity? 13 | Be not self-will'd, for thou art much too fair 14 | To be death's conquest and make worms thine heir. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-007.txt: -------------------------------------------------------------------------------- 1 | Lo! in the orient when the gracious light 2 | Lifts up his burning head, each under eye 3 | Doth homage to his new-appearing sight, 4 | Serving with looks his sacred majesty; 5 | And having climb'd the steep-up heavenly hill, 6 | Resembling strong youth in his middle age, 7 | Yet mortal looks adore his beauty still, 8 | Attending on his golden pilgrimage; 9 | But when from highmost pitch, with weary car, 10 | Like feeble age, he reeleth from the day, 11 | The eyes, 'fore duteous, now converted are 12 | From his low tract and look another way: 13 | So thou, thyself out-going in thy noon, 14 | Unlook'd on diest, unless thou get a son. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-008.txt: -------------------------------------------------------------------------------- 1 | Music to hear, why hear'st thou music sadly? 2 | Sweets with sweets war not, joy delights in joy. 3 | Why lovest thou that which thou receivest not gladly, 4 | Or else receivest with pleasure thine annoy? 5 | If the true concord of well-tuned sounds, 6 | By unions married, do offend thine ear, 7 | They do but sweetly chide thee, who confounds 8 | In singleness the parts that thou shouldst bear. 9 | Mark how one string, sweet husband to another, 10 | Strikes each in each by mutual ordering, 11 | Resembling sire and child and happy mother 12 | Who all in one, one pleasing note do sing: 13 | Whose speechless song, being many, seeming one, 14 | Sings this to thee: 'thou single wilt prove none.' -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-009.txt: -------------------------------------------------------------------------------- 1 | Is it for fear to wet a widow's eye 2 | That thou consumest thyself in single life? 3 | Ah! if thou issueless shalt hap to die. 4 | The world will wail thee, like a makeless wife; 5 | The world will be thy widow and still weep 6 | That thou no form of thee hast left behind, 7 | When every private widow well may keep 8 | By children's eyes her husband's shape in mind. 9 | Look, what an unthrift in the world doth spend 10 | Shifts but his place, for still the world enjoys it; 11 | But beauty's waste hath in the world an end, 12 | And kept unused, the user so destroys it. 13 | No love toward others in that bosom sits 14 | That on himself such murderous shame commits. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-010.txt: -------------------------------------------------------------------------------- 1 | For shame! deny that thou bear'st love to any, 2 | Who for thyself art so unprovident. 3 | Grant, if thou wilt, thou art beloved of many, 4 | But that thou none lovest is most evident; 5 | For thou art so possess'd with murderous hate 6 | That 'gainst thyself thou stick'st not to conspire. 7 | Seeking that beauteous roof to ruinate 8 | Which to repair should be thy chief desire. 9 | O, change thy thought, that I may change my mind! 10 | Shall hate be fairer lodged than gentle love? 11 | Be, as thy presence is, gracious and kind, 12 | Or to thyself at least kind-hearted prove: 13 | Make thee another self, for love of me, 14 | That beauty still may live in thine or thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-011.txt: -------------------------------------------------------------------------------- 1 | As fast as thou shalt wane, so fast thou growest 2 | In one of thine, from that which thou departest; 3 | And that fresh blood which youngly thou bestowest 4 | Thou mayst call thine when thou from youth convertest. 5 | Herein lives wisdom, beauty and increase: 6 | Without this, folly, age and cold decay: 7 | If all were minded so, the times should cease 8 | And threescore year would make the world away. 9 | Let those whom Nature hath not made for store, 10 | Harsh featureless and rude, barrenly perish: 11 | Look, whom she best endow'd she gave the more; 12 | Which bounteous gift thou shouldst in bounty cherish: 13 | She carved thee for her seal, and meant thereby 14 | Thou shouldst print more, not let that copy die. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-012.txt: -------------------------------------------------------------------------------- 1 | When I do count the clock that tells the time, 2 | And see the brave day sunk in hideous night; 3 | When I behold the violet past prime, 4 | And sable curls all silver'd o'er with white; 5 | When lofty trees I see barren of leaves 6 | Which erst from heat did canopy the herd, 7 | And summer's green all girded up in sheaves 8 | Borne on the bier with white and bristly beard, 9 | Then of thy beauty do I question make, 10 | That thou among the wastes of time must go, 11 | Since sweets and beauties do themselves forsake 12 | And die as fast as they see others grow; 13 | And nothing 'gainst Time's scythe can make defence 14 | Save breed, to brave him when he takes thee hence. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-013.txt: -------------------------------------------------------------------------------- 1 | O, that you were yourself! but, love, you are 2 | No longer yours than you yourself here live: 3 | Against this coming end you should prepare, 4 | And your sweet semblance to some other give. 5 | So should that beauty which you hold in lease 6 | Find no determination: then you were 7 | Yourself again after yourself's decease, 8 | When your sweet issue your sweet form should bear. 9 | Who lets so fair a house fall to decay, 10 | Which husbandry in honour might uphold 11 | Against the stormy gusts of winter's day 12 | And barren rage of death's eternal cold? 13 | O, none but unthrifts! Dear my love, you know 14 | You had a father: let your son say so. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-014.txt: -------------------------------------------------------------------------------- 1 | Not from the stars do I my judgment pluck; 2 | And yet methinks I have astronomy, 3 | But not to tell of good or evil luck, 4 | Of plagues, of dearths, or seasons' quality; 5 | Nor can I fortune to brief minutes tell, 6 | Pointing to each his thunder, rain and wind, 7 | Or say with princes if it shall go well, 8 | By oft predict that I in heaven find: 9 | But from thine eyes my knowledge I derive, 10 | And, constant stars, in them I read such art 11 | As truth and beauty shall together thrive, 12 | If from thyself to store thou wouldst convert; 13 | Or else of thee this I prognosticate: 14 | Thy end is truth's and beauty's doom and date. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-015.txt: -------------------------------------------------------------------------------- 1 | When I consider every thing that grows 2 | Holds in perfection but a little moment, 3 | That this huge stage presenteth nought but shows 4 | Whereon the stars in secret influence comment; 5 | When I perceive that men as plants increase, 6 | Cheered and check'd even by the self-same sky, 7 | Vaunt in their youthful sap, at height decrease, 8 | And wear their brave state out of memory; 9 | Then the conceit of this inconstant stay 10 | Sets you most rich in youth before my sight, 11 | Where wasteful Time debateth with Decay, 12 | To change your day of youth to sullied night; 13 | And all in war with Time for love of you, 14 | As he takes from you, I engraft you new. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-016.txt: -------------------------------------------------------------------------------- 1 | But wherefore do not you a mightier way 2 | Make war upon this bloody tyrant, Time? 3 | And fortify yourself in your decay 4 | With means more blessed than my barren rhyme? 5 | Now stand you on the top of happy hours, 6 | And many maiden gardens yet unset 7 | With virtuous wish would bear your living flowers, 8 | Much liker than your painted counterfeit: 9 | So should the lines of life that life repair, 10 | Which this, Time's pencil, or my pupil pen, 11 | Neither in inward worth nor outward fair, 12 | Can make you live yourself in eyes of men. 13 | To give away yourself keeps yourself still, 14 | And you must live, drawn by your own sweet skill. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-017.txt: -------------------------------------------------------------------------------- 1 | Who will believe my verse in time to come, 2 | If it were fill'd with your most high deserts? 3 | Though yet, heaven knows, it is but as a tomb 4 | Which hides your life and shows not half your parts. 5 | If I could write the beauty of your eyes 6 | And in fresh numbers number all your graces, 7 | The age to come would say 'This poet lies: 8 | Such heavenly touches ne'er touch'd earthly faces.' 9 | So should my papers yellow'd with their age 10 | Be scorn'd like old men of less truth than tongue, 11 | And your true rights be term'd a poet's rage 12 | And stretched metre of an antique song: 13 | But were some child of yours alive that time, 14 | You should live twice; in it and in my rhyme. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-018.txt: -------------------------------------------------------------------------------- 1 | Shall I compare thee to a summer's day? 2 | Thou art more lovely and more temperate: 3 | Rough winds do shake the darling buds of May, 4 | And summer's lease hath all too short a date: 5 | Sometime too hot the eye of heaven shines, 6 | And often is his gold complexion dimm'd; 7 | And every fair from fair sometime declines, 8 | By chance or nature's changing course untrimm'd; 9 | But thy eternal summer shall not fade 10 | Nor lose possession of that fair thou owest; 11 | Nor shall Death brag thou wander'st in his shade, 12 | When in eternal lines to time thou growest: 13 | So long as men can breathe or eyes can see, 14 | So long lives this and this gives life to thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-019.txt: -------------------------------------------------------------------------------- 1 | Devouring Time, blunt thou the lion's paws, 2 | And make the earth devour her own sweet brood; 3 | Pluck the keen teeth from the fierce tiger's jaws, 4 | And burn the long-lived phoenix in her blood; 5 | Make glad and sorry seasons as thou fleets, 6 | And do whate'er thou wilt, swift-footed Time, 7 | To the wide world and all her fading sweets; 8 | But I forbid thee one most heinous crime: 9 | O, carve not with thy hours my love's fair brow, 10 | Nor draw no lines there with thine antique pen; 11 | Him in thy course untainted do allow 12 | For beauty's pattern to succeeding men. 13 | Yet, do thy worst, old Time: despite thy wrong, 14 | My love shall in my verse ever live young. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-020.txt: -------------------------------------------------------------------------------- 1 | A woman's face with Nature's own hand painted 2 | Hast thou, the master-mistress of my passion; 3 | A woman's gentle heart, but not acquainted 4 | With shifting change, as is false women's fashion; 5 | An eye more bright than theirs, less false in rolling, 6 | Gilding the object whereupon it gazeth; 7 | A man in hue, all 'hues' in his controlling, 8 | Much steals men's eyes and women's souls amazeth. 9 | And for a woman wert thou first created; 10 | Till Nature, as she wrought thee, fell a-doting, 11 | And by addition me of thee defeated, 12 | By adding one thing to my purpose nothing. 13 | But since she prick'd thee out for women's pleasure, 14 | Mine be thy love and thy love's use their treasure. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-021.txt: -------------------------------------------------------------------------------- 1 | So is it not with me as with that Muse 2 | Stirr'd by a painted beauty to his verse, 3 | Who heaven itself for ornament doth use 4 | And every fair with his fair doth rehearse 5 | Making a couplement of proud compare, 6 | With sun and moon, with earth and sea's rich gems, 7 | With April's first-born flowers, and all things rare 8 | That heaven's air in this huge rondure hems. 9 | O' let me, true in love, but truly write, 10 | And then believe me, my love is as fair 11 | As any mother's child, though not so bright 12 | As those gold candles fix'd in heaven's air: 13 | Let them say more than like of hearsay well; 14 | I will not praise that purpose not to sell. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-022.txt: -------------------------------------------------------------------------------- 1 | My glass shall not persuade me I am old, 2 | So long as youth and thou are of one date; 3 | But when in thee time's furrows I behold, 4 | Then look I death my days should expiate. 5 | For all that beauty that doth cover thee 6 | Is but the seemly raiment of my heart, 7 | Which in thy breast doth live, as thine in me: 8 | How can I then be elder than thou art? 9 | O, therefore, love, be of thyself so wary 10 | As I, not for myself, but for thee will; 11 | Bearing thy heart, which I will keep so chary 12 | As tender nurse her babe from faring ill. 13 | Presume not on thy heart when mine is slain; 14 | Thou gavest me thine, not to give back again. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-023.txt: -------------------------------------------------------------------------------- 1 | As an unperfect actor on the stage 2 | Who with his fear is put besides his part, 3 | Or some fierce thing replete with too much rage, 4 | Whose strength's abundance weakens his own heart. 5 | So I, for fear of trust, forget to say 6 | The perfect ceremony of love's rite, 7 | And in mine own love's strength seem to decay, 8 | O'ercharged with burden of mine own love's might. 9 | O, let my books be then the eloquence 10 | And dumb presagers of my speaking breast, 11 | Who plead for love and look for recompense 12 | More than that tongue that more hath more express'd. 13 | O, learn to read what silent love hath writ: 14 | To hear with eyes belongs to love's fine wit. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-024.txt: -------------------------------------------------------------------------------- 1 | Mine eye hath play'd the painter and hath stell'd 2 | Thy beauty's form in table of my heart; 3 | My body is the frame wherein 'tis held, 4 | And perspective it is the painter's art. 5 | For through the painter must you see his skill, 6 | To find where your true image pictured lies; 7 | Which in my bosom's shop is hanging still, 8 | That hath his windows glazed with thine eyes. 9 | Now see what good turns eyes for eyes have done: 10 | Mine eyes have drawn thy shape, and thine for me 11 | Are windows to my breast, where-through the sun 12 | Delights to peep, to gaze therein on thee; 13 | Yet eyes this cunning want to grace their art; 14 | They draw but what they see, know not the heart. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-025.txt: -------------------------------------------------------------------------------- 1 | Let those who are in favour with their stars 2 | Of public honour and proud titles boast, 3 | Whilst I, whom fortune of such triumph bars, 4 | Unlook'd for joy in that I honour most. 5 | Great princes' favourites their fair leaves spread 6 | But as the marigold at the sun's eye, 7 | And in themselves their pride lies buried, 8 | For at a frown they in their glory die. 9 | The painful warrior famoused for fight, 10 | After a thousand victories once foil'd, 11 | Is from the book of honour razed quite, 12 | And all the rest forgot for which he toil'd: 13 | Then happy I, that love and am beloved 14 | Where I may not remove nor be removed. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-026.txt: -------------------------------------------------------------------------------- 1 | Lord of my love, to whom in vassalage 2 | Thy merit hath my duty strongly knit, 3 | To thee I send this written embassage, 4 | To witness duty, not to show my wit: 5 | Duty so great, which wit so poor as mine 6 | May make seem bare, in wanting words to show it, 7 | But that I hope some good conceit of thine 8 | In thy soul's thought, all naked, will bestow it; 9 | Till whatsoever star that guides my moving 10 | Points on me graciously with fair aspect 11 | And puts apparel on my tatter'd loving, 12 | To show me worthy of thy sweet respect: 13 | Then may I dare to boast how I do love thee; 14 | Till then not show my head where thou mayst prove me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-027.txt: -------------------------------------------------------------------------------- 1 | Weary with toil, I haste me to my bed, 2 | The dear repose for limbs with travel tired; 3 | But then begins a journey in my head, 4 | To work my mind, when body's work's expired: 5 | For then my thoughts, from far where I abide, 6 | Intend a zealous pilgrimage to thee, 7 | And keep my drooping eyelids open wide, 8 | Looking on darkness which the blind do see 9 | Save that my soul's imaginary sight 10 | Presents thy shadow to my sightless view, 11 | Which, like a jewel hung in ghastly night, 12 | Makes black night beauteous and her old face new. 13 | Lo! thus, by day my limbs, by night my mind, 14 | For thee and for myself no quiet find. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-028.txt: -------------------------------------------------------------------------------- 1 | How can I then return in happy plight, 2 | That am debarr'd the benefit of rest? 3 | When day's oppression is not eased by night, 4 | But day by night, and night by day, oppress'd? 5 | And each, though enemies to either's reign, 6 | Do in consent shake hands to torture me; 7 | The one by toil, the other to complain 8 | How far I toil, still farther off from thee. 9 | I tell the day, to please them thou art bright 10 | And dost him grace when clouds do blot the heaven: 11 | So flatter I the swart-complexion'd night, 12 | When sparkling stars twire not thou gild'st the even. 13 | But day doth daily draw my sorrows longer 14 | And night doth nightly make grief's strength 15 | seem stronger. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-029.txt: -------------------------------------------------------------------------------- 1 | When, in disgrace with fortune and men's eyes, 2 | I all alone beweep my outcast state 3 | And trouble deaf heaven with my bootless cries 4 | And look upon myself and curse my fate, 5 | Wishing me like to one more rich in hope, 6 | Featured like him, like him with friends possess'd, 7 | Desiring this man's art and that man's scope, 8 | With what I most enjoy contented least; 9 | Yet in these thoughts myself almost despising, 10 | Haply I think on thee, and then my state, 11 | Like to the lark at break of day arising 12 | From sullen earth, sings hymns at heaven's gate; 13 | For thy sweet love remember'd such wealth brings 14 | That then I scorn to change my state with kings. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-030.txt: -------------------------------------------------------------------------------- 1 | When to the sessions of sweet silent thought 2 | I summon up remembrance of things past, 3 | I sigh the lack of many a thing I sought, 4 | And with old woes new wail my dear time's waste: 5 | Then can I drown an eye, unused to flow, 6 | For precious friends hid in death's dateless night, 7 | And weep afresh love's long since cancell'd woe, 8 | And moan the expense of many a vanish'd sight: 9 | Then can I grieve at grievances foregone, 10 | And heavily from woe to woe tell o'er 11 | The sad account of fore-bemoaned moan, 12 | Which I new pay as if not paid before. 13 | But if the while I think on thee, dear friend, 14 | All losses are restored and sorrows end. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-031.txt: -------------------------------------------------------------------------------- 1 | Thy bosom is endeared with all hearts, 2 | Which I by lacking have supposed dead, 3 | And there reigns love and all love's loving parts, 4 | And all those friends which I thought buried. 5 | How many a holy and obsequious tear 6 | Hath dear religious love stol'n from mine eye 7 | As interest of the dead, which now appear 8 | But things removed that hidden in thee lie! 9 | Thou art the grave where buried love doth live, 10 | Hung with the trophies of my lovers gone, 11 | Who all their parts of me to thee did give; 12 | That due of many now is thine alone: 13 | Their images I loved I view in thee, 14 | And thou, all they, hast all the all of me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-032.txt: -------------------------------------------------------------------------------- 1 | If thou survive my well-contented day, 2 | When that churl Death my bones with dust shall cover, 3 | And shalt by fortune once more re-survey 4 | These poor rude lines of thy deceased lover, 5 | Compare them with the bettering of the time, 6 | And though they be outstripp'd by every pen, 7 | Reserve them for my love, not for their rhyme, 8 | Exceeded by the height of happier men. 9 | O, then vouchsafe me but this loving thought: 10 | 'Had my friend's Muse grown with this growing age, 11 | A dearer birth than this his love had brought, 12 | To march in ranks of better equipage: 13 | But since he died and poets better prove, 14 | Theirs for their style I'll read, his for his love.' -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-033.txt: -------------------------------------------------------------------------------- 1 | Full many a glorious morning have I seen 2 | Flatter the mountain-tops with sovereign eye, 3 | Kissing with golden face the meadows green, 4 | Gilding pale streams with heavenly alchemy; 5 | Anon permit the basest clouds to ride 6 | With ugly rack on his celestial face, 7 | And from the forlorn world his visage hide, 8 | Stealing unseen to west with this disgrace: 9 | Even so my sun one early morn did shine 10 | With all triumphant splendor on my brow; 11 | But out, alack! he was but one hour mine; 12 | The region cloud hath mask'd him from me now. 13 | Yet him for this my love no whit disdaineth; 14 | Suns of the world may stain when heaven's sun staineth. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-034.txt: -------------------------------------------------------------------------------- 1 | Why didst thou promise such a beauteous day, 2 | And make me travel forth without my cloak, 3 | To let base clouds o'ertake me in my way, 4 | Hiding thy bravery in their rotten smoke? 5 | 'Tis not enough that through the cloud thou break, 6 | To dry the rain on my storm-beaten face, 7 | For no man well of such a salve can speak 8 | That heals the wound and cures not the disgrace: 9 | Nor can thy shame give physic to my grief; 10 | Though thou repent, yet I have still the loss: 11 | The offender's sorrow lends but weak relief 12 | To him that bears the strong offence's cross. 13 | Ah! but those tears are pearl which thy love sheds, 14 | And they are rich and ransom all ill deeds. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-035.txt: -------------------------------------------------------------------------------- 1 | No more be grieved at that which thou hast done: 2 | Roses have thorns, and silver fountains mud; 3 | Clouds and eclipses stain both moon and sun, 4 | And loathsome canker lives in sweetest bud. 5 | All men make faults, and even I in this, 6 | Authorizing thy trespass with compare, 7 | Myself corrupting, salving thy amiss, 8 | Excusing thy sins more than thy sins are; 9 | For to thy sensual fault I bring in sense-- 10 | Thy adverse party is thy advocate-- 11 | And 'gainst myself a lawful plea commence: 12 | Such civil war is in my love and hate 13 | That I an accessary needs must be 14 | To that sweet thief which sourly robs from me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-036.txt: -------------------------------------------------------------------------------- 1 | Let me confess that we two must be twain, 2 | Although our undivided loves are one: 3 | So shall those blots that do with me remain 4 | Without thy help by me be borne alone. 5 | In our two loves there is but one respect, 6 | Though in our lives a separable spite, 7 | Which though it alter not love's sole effect, 8 | Yet doth it steal sweet hours from love's delight. 9 | I may not evermore acknowledge thee, 10 | Lest my bewailed guilt should do thee shame, 11 | Nor thou with public kindness honour me, 12 | Unless thou take that honour from thy name: 13 | But do not so; I love thee in such sort 14 | As, thou being mine, mine is thy good report. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-037.txt: -------------------------------------------------------------------------------- 1 | As a decrepit father takes delight 2 | To see his active child do deeds of youth, 3 | So I, made lame by fortune's dearest spite, 4 | Take all my comfort of thy worth and truth. 5 | For whether beauty, birth, or wealth, or wit, 6 | Or any of these all, or all, or more, 7 | Entitled in thy parts do crowned sit, 8 | I make my love engrafted to this store: 9 | So then I am not lame, poor, nor despised, 10 | Whilst that this shadow doth such substance give 11 | That I in thy abundance am sufficed 12 | And by a part of all thy glory live. 13 | Look, what is best, that best I wish in thee: 14 | This wish I have; then ten times happy me! -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-038.txt: -------------------------------------------------------------------------------- 1 | How can my Muse want subject to invent, 2 | While thou dost breathe, that pour'st into my verse 3 | Thine own sweet argument, too excellent 4 | For every vulgar paper to rehearse? 5 | O, give thyself the thanks, if aught in me 6 | Worthy perusal stand against thy sight; 7 | For who's so dumb that cannot write to thee, 8 | When thou thyself dost give invention light? 9 | Be thou the tenth Muse, ten times more in worth 10 | Than those old nine which rhymers invocate; 11 | And he that calls on thee, let him bring forth 12 | Eternal numbers to outlive long date. 13 | If my slight Muse do please these curious days, 14 | The pain be mine, but thine shall be the praise. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-039.txt: -------------------------------------------------------------------------------- 1 | O, how thy worth with manners may I sing, 2 | When thou art all the better part of me? 3 | What can mine own praise to mine own self bring? 4 | And what is 't but mine own when I praise thee? 5 | Even for this let us divided live, 6 | And our dear love lose name of single one, 7 | That by this separation I may give 8 | That due to thee which thou deservest alone. 9 | O absence, what a torment wouldst thou prove, 10 | Were it not thy sour leisure gave sweet leave 11 | To entertain the time with thoughts of love, 12 | Which time and thoughts so sweetly doth deceive, 13 | And that thou teachest how to make one twain, 14 | By praising him here who doth hence remain! -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-040.txt: -------------------------------------------------------------------------------- 1 | Take all my loves, my love, yea, take them all; 2 | What hast thou then more than thou hadst before? 3 | No love, my love, that thou mayst true love call; 4 | All mine was thine before thou hadst this more. 5 | Then if for my love thou my love receivest, 6 | I cannot blame thee for my love thou usest; 7 | But yet be blamed, if thou thyself deceivest 8 | By wilful taste of what thyself refusest. 9 | I do forgive thy robbery, gentle thief, 10 | Although thou steal thee all my poverty; 11 | And yet, love knows, it is a greater grief 12 | To bear love's wrong than hate's known injury. 13 | Lascivious grace, in whom all ill well shows, 14 | Kill me with spites; yet we must not be foes. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-041.txt: -------------------------------------------------------------------------------- 1 | Those petty wrongs that liberty commits, 2 | When I am sometime absent from thy heart, 3 | Thy beauty and thy years full well befits, 4 | For still temptation follows where thou art. 5 | Gentle thou art and therefore to be won, 6 | Beauteous thou art, therefore to be assailed; 7 | And when a woman woos, what woman's son 8 | Will sourly leave her till she have prevailed? 9 | Ay me! but yet thou mightest my seat forbear, 10 | And chide thy beauty and thy straying youth, 11 | Who lead thee in their riot even there 12 | Where thou art forced to break a twofold truth, 13 | Hers by thy beauty tempting her to thee, 14 | Thine, by thy beauty being false to me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-042.txt: -------------------------------------------------------------------------------- 1 | That thou hast her, it is not all my grief, 2 | And yet it may be said I loved her dearly; 3 | That she hath thee, is of my wailing chief, 4 | A loss in love that touches me more nearly. 5 | Loving offenders, thus I will excuse ye: 6 | Thou dost love her, because thou knowst I love her; 7 | And for my sake even so doth she abuse me, 8 | Suffering my friend for my sake to approve her. 9 | If I lose thee, my loss is my love's gain, 10 | And losing her, my friend hath found that loss; 11 | Both find each other, and I lose both twain, 12 | And both for my sake lay on me this cross: 13 | But here's the joy; my friend and I are one; 14 | Sweet flattery! then she loves but me alone. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-043.txt: -------------------------------------------------------------------------------- 1 | When most I wink, then do mine eyes best see, 2 | For all the day they view things unrespected; 3 | But when I sleep, in dreams they look on thee, 4 | And darkly bright are bright in dark directed. 5 | Then thou, whose shadow shadows doth make bright, 6 | How would thy shadow's form form happy show 7 | To the clear day with thy much clearer light, 8 | When to unseeing eyes thy shade shines so! 9 | How would, I say, mine eyes be blessed made 10 | By looking on thee in the living day, 11 | When in dead night thy fair imperfect shade 12 | Through heavy sleep on sightless eyes doth stay! 13 | All days are nights to see till I see thee, 14 | And nights bright days when dreams do show thee me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-044.txt: -------------------------------------------------------------------------------- 1 | If the dull substance of my flesh were thought, 2 | Injurious distance should not stop my way; 3 | For then despite of space I would be brought, 4 | From limits far remote where thou dost stay. 5 | No matter then although my foot did stand 6 | Upon the farthest earth removed from thee; 7 | For nimble thought can jump both sea and land 8 | As soon as think the place where he would be. 9 | But ah! thought kills me that I am not thought, 10 | To leap large lengths of miles when thou art gone, 11 | But that so much of earth and water wrought 12 | I must attend time's leisure with my moan, 13 | Receiving nought by elements so slow 14 | But heavy tears, badges of either's woe. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-045.txt: -------------------------------------------------------------------------------- 1 | The other two, slight air and purging fire, 2 | Are both with thee, wherever I abide; 3 | The first my thought, the other my desire, 4 | These present-absent with swift motion slide. 5 | For when these quicker elements are gone 6 | In tender embassy of love to thee, 7 | My life, being made of four, with two alone 8 | Sinks down to death, oppress'd with melancholy; 9 | Until life's composition be recured 10 | By those swift messengers return'd from thee, 11 | Who even but now come back again, assured 12 | Of thy fair health, recounting it to me: 13 | This told, I joy; but then no longer glad, 14 | I send them back again and straight grow sad. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-046.txt: -------------------------------------------------------------------------------- 1 | Mine eye and heart are at a mortal war 2 | How to divide the conquest of thy sight; 3 | Mine eye my heart thy picture's sight would bar, 4 | My heart mine eye the freedom of that right. 5 | My heart doth plead that thou in him dost lie-- 6 | A closet never pierced with crystal eyes-- 7 | But the defendant doth that plea deny 8 | And says in him thy fair appearance lies. 9 | To 'cide this title is impanneled 10 | A quest of thoughts, all tenants to the heart, 11 | And by their verdict is determined 12 | The clear eye's moiety and the dear heart's part: 13 | As thus; mine eye's due is thy outward part, 14 | And my heart's right thy inward love of heart. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-047.txt: -------------------------------------------------------------------------------- 1 | Betwixt mine eye and heart a league is took, 2 | And each doth good turns now unto the other: 3 | When that mine eye is famish'd for a look, 4 | Or heart in love with sighs himself doth smother, 5 | With my love's picture then my eye doth feast 6 | And to the painted banquet bids my heart; 7 | Another time mine eye is my heart's guest 8 | And in his thoughts of love doth share a part: 9 | So, either by thy picture or my love, 10 | Thyself away art resent still with me; 11 | For thou not farther than my thoughts canst move, 12 | And I am still with them and they with thee; 13 | Or, if they sleep, thy picture in my sight 14 | Awakes my heart to heart's and eye's delight. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-048.txt: -------------------------------------------------------------------------------- 1 | How careful was I, when I took my way, 2 | Each trifle under truest bars to thrust, 3 | That to my use it might unused stay 4 | From hands of falsehood, in sure wards of trust! 5 | But thou, to whom my jewels trifles are, 6 | Most worthy of comfort, now my greatest grief, 7 | Thou, best of dearest and mine only care, 8 | Art left the prey of every vulgar thief. 9 | Thee have I not lock'd up in any chest, 10 | Save where thou art not, though I feel thou art, 11 | Within the gentle closure of my breast, 12 | From whence at pleasure thou mayst come and part; 13 | And even thence thou wilt be stol'n, I fear, 14 | For truth proves thievish for a prize so dear. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-049.txt: -------------------------------------------------------------------------------- 1 | Against that time, if ever that time come, 2 | When I shall see thee frown on my defects, 3 | When as thy love hath cast his utmost sum, 4 | Call'd to that audit by advised respects; 5 | Against that time when thou shalt strangely pass 6 | And scarcely greet me with that sun thine eye, 7 | When love, converted from the thing it was, 8 | Shall reasons find of settled gravity,-- 9 | Against that time do I ensconce me here 10 | Within the knowledge of mine own desert, 11 | And this my hand against myself uprear, 12 | To guard the lawful reasons on thy part: 13 | To leave poor me thou hast the strength of laws, 14 | Since why to love I can allege no cause. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-050.txt: -------------------------------------------------------------------------------- 1 | How heavy do I journey on the way, 2 | When what I seek, my weary travel's end, 3 | Doth teach that ease and that repose to say 4 | 'Thus far the miles are measured from thy friend!' 5 | The beast that bears me, tired with my woe, 6 | Plods dully on, to bear that weight in me, 7 | As if by some instinct the wretch did know 8 | His rider loved not speed, being made from thee: 9 | The bloody spur cannot provoke him on 10 | That sometimes anger thrusts into his hide; 11 | Which heavily he answers with a groan, 12 | More sharp to me than spurring to his side; 13 | For that same groan doth put this in my mind; 14 | My grief lies onward and my joy behind. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-051.txt: -------------------------------------------------------------------------------- 1 | Thus can my love excuse the slow offence 2 | Of my dull bearer when from thee I speed: 3 | From where thou art why should I haste me thence? 4 | Till I return, of posting is no need. 5 | O, what excuse will my poor beast then find, 6 | When swift extremity can seem but slow? 7 | Then should I spur, though mounted on the wind; 8 | In winged speed no motion shall I know: 9 | Then can no horse with my desire keep pace; 10 | Therefore desire of perfect'st love being made, 11 | Shall neigh--no dull flesh--in his fiery race; 12 | But love, for love, thus shall excuse my jade; 13 | Since from thee going he went wilful-slow, 14 | Towards thee I'll run, and give him leave to go. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-052.txt: -------------------------------------------------------------------------------- 1 | So am I as the rich, whose blessed key 2 | Can bring him to his sweet up-locked treasure, 3 | The which he will not every hour survey, 4 | For blunting the fine point of seldom pleasure. 5 | Therefore are feasts so solemn and so rare, 6 | Since, seldom coming, in the long year set, 7 | Like stones of worth they thinly placed are, 8 | Or captain jewels in the carcanet. 9 | So is the time that keeps you as my chest, 10 | Or as the wardrobe which the robe doth hide, 11 | To make some special instant special blest, 12 | By new unfolding his imprison'd pride. 13 | Blessed are you, whose worthiness gives scope, 14 | Being had, to triumph, being lack'd, to hope. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-053.txt: -------------------------------------------------------------------------------- 1 | What is your substance, whereof are you made, 2 | That millions of strange shadows on you tend? 3 | Since every one hath, every one, one shade, 4 | And you, but one, can every shadow lend. 5 | Describe Adonis, and the counterfeit 6 | Is poorly imitated after you; 7 | On Helen's cheek all art of beauty set, 8 | And you in Grecian tires are painted new: 9 | Speak of the spring and foison of the year; 10 | The one doth shadow of your beauty show, 11 | The other as your bounty doth appear; 12 | And you in every blessed shape we know. 13 | In all external grace you have some part, 14 | But you like none, none you, for constant heart. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-054.txt: -------------------------------------------------------------------------------- 1 | O, how much more doth beauty beauteous seem 2 | By that sweet ornament which truth doth give! 3 | The rose looks fair, but fairer we it deem 4 | For that sweet odour which doth in it live. 5 | The canker-blooms have full as deep a dye 6 | As the perfumed tincture of the roses, 7 | Hang on such thorns and play as wantonly 8 | When summer's breath their masked buds discloses: 9 | But, for their virtue only is their show, 10 | They live unwoo'd and unrespected fade, 11 | Die to themselves. Sweet roses do not so; 12 | Of their sweet deaths are sweetest odours made: 13 | And so of you, beauteous and lovely youth, 14 | When that shall fade, my verse distills your truth. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-055.txt: -------------------------------------------------------------------------------- 1 | Not marble, nor the gilded monuments 2 | Of princes, shall outlive this powerful rhyme; 3 | But you shall shine more bright in these contents 4 | Than unswept stone besmear'd with sluttish time. 5 | When wasteful war shall statues overturn, 6 | And broils root out the work of masonry, 7 | Nor Mars his sword nor war's quick fire shall burn 8 | The living record of your memory. 9 | 'Gainst death and all-oblivious enmity 10 | Shall you pace forth; your praise shall still find room 11 | Even in the eyes of all posterity 12 | That wear this world out to the ending doom. 13 | So, till the judgment that yourself arise, 14 | You live in this, and dwell in lover's eyes. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-056.txt: -------------------------------------------------------------------------------- 1 | Sweet love, renew thy force; be it not said 2 | Thy edge should blunter be than appetite, 3 | Which but to-day by feeding is allay'd, 4 | To-morrow sharpen'd in his former might: 5 | So, love, be thou; although to-day thou fill 6 | Thy hungry eyes even till they wink with fullness, 7 | To-morrow see again, and do not kill 8 | The spirit of love with a perpetual dullness. 9 | Let this sad interim like the ocean be 10 | Which parts the shore, where two contracted new 11 | Come daily to the banks, that, when they see 12 | Return of love, more blest may be the view; 13 | Else call it winter, which being full of care 14 | Makes summer's welcome thrice more wish'd, more rare. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-057.txt: -------------------------------------------------------------------------------- 1 | Being your slave, what should I do but tend 2 | Upon the hours and times of your desire? 3 | I have no precious time at all to spend, 4 | Nor services to do, till you require. 5 | Nor dare I chide the world-without-end hour 6 | Whilst I, my sovereign, watch the clock for you, 7 | Nor think the bitterness of absence sour 8 | When you have bid your servant once adieu; 9 | Nor dare I question with my jealous thought 10 | Where you may be, or your affairs suppose, 11 | But, like a sad slave, stay and think of nought 12 | Save, where you are how happy you make those. 13 | So true a fool is love that in your will, 14 | Though you do any thing, he thinks no ill. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-058.txt: -------------------------------------------------------------------------------- 1 | That god forbid that made me first your slave, 2 | I should in thought control your times of pleasure, 3 | Or at your hand the account of hours to crave, 4 | Being your vassal, bound to stay your leisure! 5 | O, let me suffer, being at your beck, 6 | The imprison'd absence of your liberty; 7 | And patience, tame to sufferance, bide each check, 8 | Without accusing you of injury. 9 | Be where you list, your charter is so strong 10 | That you yourself may privilege your time 11 | To what you will; to you it doth belong 12 | Yourself to pardon of self-doing crime. 13 | I am to wait, though waiting so be hell; 14 | Not blame your pleasure, be it ill or well. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-059.txt: -------------------------------------------------------------------------------- 1 | If there be nothing new, but that which is 2 | Hath been before, how are our brains beguiled, 3 | Which, labouring for invention, bear amiss 4 | The second burden of a former child! 5 | O, that record could with a backward look, 6 | Even of five hundred courses of the sun, 7 | Show me your image in some antique book, 8 | Since mind at first in character was done! 9 | That I might see what the old world could say 10 | To this composed wonder of your frame; 11 | Whether we are mended, or whether better they, 12 | Or whether revolution be the same. 13 | O, sure I am, the wits of former days 14 | To subjects worse have given admiring praise. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-060.txt: -------------------------------------------------------------------------------- 1 | Like as the waves make towards the pebbled shore, 2 | So do our minutes hasten to their end; 3 | Each changing place with that which goes before, 4 | In sequent toil all forwards do contend. 5 | Nativity, once in the main of light, 6 | Crawls to maturity, wherewith being crown'd, 7 | Crooked elipses 'gainst his glory fight, 8 | And Time that gave doth now his gift confound. 9 | Time doth transfix the flourish set on youth 10 | And delves the parallels in beauty's brow, 11 | Feeds on the rarities of nature's truth, 12 | And nothing stands but for his scythe to mow: 13 | And yet to times in hope my verse shall stand, 14 | Praising thy worth, despite his cruel hand. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-061.txt: -------------------------------------------------------------------------------- 1 | Is it thy will thy image should keep open 2 | My heavy eyelids to the weary night? 3 | Dost thou desire my slumbers should be broken, 4 | While shadows like to thee do mock my sight? 5 | Is it thy spirit that thou send'st from thee 6 | So far from home into my deeds to pry, 7 | To find out shames and idle hours in me, 8 | The scope and tenor of thy jealousy? 9 | O, no! thy love, though much, is not so great: 10 | It is my love that keeps mine eye awake; 11 | Mine own true love that doth my rest defeat, 12 | To play the watchman ever for thy sake: 13 | For thee watch I whilst thou dost wake elsewhere, 14 | From me far off, with others all too near. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-062.txt: -------------------------------------------------------------------------------- 1 | Sin of self-love possesseth all mine eye 2 | And all my soul and all my every part; 3 | And for this sin there is no remedy, 4 | It is so grounded inward in my heart. 5 | Methinks no face so gracious is as mine, 6 | No shape so true, no truth of such account; 7 | And for myself mine own worth do define, 8 | As I all other in all worths surmount. 9 | But when my glass shows me myself indeed, 10 | Beated and chopp'd with tann'd antiquity, 11 | Mine own self-love quite contrary I read; 12 | Self so self-loving were iniquity. 13 | 'Tis thee, myself, that for myself I praise, 14 | Painting my age with beauty of thy days. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-063.txt: -------------------------------------------------------------------------------- 1 | Against my love shall be, as I am now, 2 | With Time's injurious hand crush'd and o'er-worn; 3 | When hours have drain'd his blood and fill'd his brow 4 | With lines and wrinkles; when his youthful morn 5 | Hath travell'd on to age's steepy night, 6 | And all those beauties whereof now he's king 7 | Are vanishing or vanish'd out of sight, 8 | Stealing away the treasure of his spring; 9 | For such a time do I now fortify 10 | Against confounding age's cruel knife, 11 | That he shall never cut from memory 12 | My sweet love's beauty, though my lover's life: 13 | His beauty shall in these black lines be seen, 14 | And they shall live, and he in them still green. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-064.txt: -------------------------------------------------------------------------------- 1 | When I have seen by Time's fell hand defaced 2 | The rich proud cost of outworn buried age; 3 | When sometime lofty towers I see down-razed 4 | And brass eternal slave to mortal rage; 5 | When I have seen the hungry ocean gain 6 | Advantage on the kingdom of the shore, 7 | And the firm soil win of the watery main, 8 | Increasing store with loss and loss with store; 9 | When I have seen such interchange of state, 10 | Or state itself confounded to decay; 11 | Ruin hath taught me thus to ruminate, 12 | That Time will come and take my love away. 13 | This thought is as a death, which cannot choose 14 | But weep to have that which it fears to lose. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-065.txt: -------------------------------------------------------------------------------- 1 | Since brass, nor stone, nor earth, nor boundless sea, 2 | But sad mortality o'er-sways their power, 3 | How with this rage shall beauty hold a plea, 4 | Whose action is no stronger than a flower? 5 | O, how shall summer's honey breath hold out 6 | Against the wreckful siege of battering days, 7 | When rocks impregnable are not so stout, 8 | Nor gates of steel so strong, but Time decays? 9 | O fearful meditation! where, alack, 10 | Shall Time's best jewel from Time's chest lie hid? 11 | Or what strong hand can hold his swift foot back? 12 | Or who his spoil of beauty can forbid? 13 | O, none, unless this miracle have might, 14 | That in black ink my love may still shine bright. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-066.txt: -------------------------------------------------------------------------------- 1 | Tired with all these, for restful death I cry, 2 | As, to behold desert a beggar born, 3 | And needy nothing trimm'd in jollity, 4 | And purest faith unhappily forsworn, 5 | And guilded honour shamefully misplaced, 6 | And maiden virtue rudely strumpeted, 7 | And right perfection wrongfully disgraced, 8 | And strength by limping sway disabled, 9 | And art made tongue-tied by authority, 10 | And folly doctor-like controlling skill, 11 | And simple truth miscall'd simplicity, 12 | And captive good attending captain ill: 13 | Tired with all these, from these would I be gone, 14 | Save that, to die, I leave my love alone. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-067.txt: -------------------------------------------------------------------------------- 1 | Ah! wherefore with infection should he live, 2 | And with his presence grace impiety, 3 | That sin by him advantage should achieve 4 | And lace itself with his society? 5 | Why should false painting imitate his cheek 6 | And steal dead seeing of his living hue? 7 | Why should poor beauty indirectly seek 8 | Roses of shadow, since his rose is true? 9 | Why should he live, now Nature bankrupt is, 10 | Beggar'd of blood to blush through lively veins? 11 | For she hath no excheckr now but his, 12 | And, proud of many, lives upon his gains. 13 | O, him she stores, to show what wealth she had 14 | In days long since, before these last so bad. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-068.txt: -------------------------------------------------------------------------------- 1 | Thus is his cheek the map of days outworn, 2 | When beauty lived and died as flowers do now, 3 | Before the bastard signs of fair were born, 4 | Or durst inhabit on a living brow; 5 | Before the golden tresses of the dead, 6 | The right of sepulchres, were shorn away, 7 | To live a second life on second head; 8 | Ere beauty's dead fleece made another gay: 9 | In him those holy antique hours are seen, 10 | Without all ornament, itself and true, 11 | Making no summer of another's green, 12 | Robbing no old to dress his beauty new; 13 | And him as for a map doth Nature store, 14 | To show false Art what beauty was of yore. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-069.txt: -------------------------------------------------------------------------------- 1 | Those parts of thee that the world's eye doth view 2 | Want nothing that the thought of hearts can mend; 3 | All tongues, the voice of souls, give thee that due, 4 | Uttering bare truth, even so as foes commend. 5 | Thy outward thus with outward praise is crown'd; 6 | But those same tongues that give thee so thine own 7 | In other accents do this praise confound 8 | By seeing farther than the eye hath shown. 9 | They look into the beauty of thy mind, 10 | And that, in guess, they measure by thy deeds; 11 | Then, churls, their thoughts, although their eyes were kind, 12 | To thy fair flower add the rank smell of weeds: 13 | But why thy odour matcheth not thy show, 14 | The solve is this, that thou dost common grow. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-070.txt: -------------------------------------------------------------------------------- 1 | That thou art blamed shall not be thy defect, 2 | For slander's mark was ever yet the fair; 3 | The ornament of beauty is suspect, 4 | A crow that flies in heaven's sweetest air. 5 | So thou be good, slander doth but approve 6 | Thy worth the greater, being woo'd of time; 7 | For canker vice the sweetest buds doth love, 8 | And thou present'st a pure unstained prime. 9 | Thou hast pass'd by the ambush of young days, 10 | Either not assail'd or victor being charged; 11 | Yet this thy praise cannot be so thy praise, 12 | To tie up envy evermore enlarged: 13 | If some suspect of ill mask'd not thy show, 14 | Then thou alone kingdoms of hearts shouldst owe. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-071.txt: -------------------------------------------------------------------------------- 1 | No longer mourn for me when I am dead 2 | Then you shall hear the surly sullen bell 3 | Give warning to the world that I am fled 4 | From this vile world, with vilest worms to dwell: 5 | Nay, if you read this line, remember not 6 | The hand that writ it; for I love you so 7 | That I in your sweet thoughts would be forgot 8 | If thinking on me then should make you woe. 9 | O, if, I say, you look upon this verse 10 | When I perhaps compounded am with clay, 11 | Do not so much as my poor name rehearse. 12 | But let your love even with my life decay, 13 | Lest the wise world should look into your moan 14 | And mock you with me after I am gone. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-072.txt: -------------------------------------------------------------------------------- 1 | O, lest the world should task you to recite 2 | What merit lived in me, that you should love 3 | After my death, dear love, forget me quite, 4 | For you in me can nothing worthy prove; 5 | Unless you would devise some virtuous lie, 6 | To do more for me than mine own desert, 7 | And hang more praise upon deceased I 8 | Than niggard truth would willingly impart: 9 | O, lest your true love may seem false in this, 10 | That you for love speak well of me untrue, 11 | My name be buried where my body is, 12 | And live no more to shame nor me nor you. 13 | For I am shamed by that which I bring forth, 14 | And so should you, to love things nothing worth. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-073.txt: -------------------------------------------------------------------------------- 1 | That time of year thou mayst in me behold 2 | When yellow leaves, or none, or few, do hang 3 | Upon those boughs which shake against the cold, 4 | Bare ruin'd choirs, where late the sweet birds sang. 5 | In me thou seest the twilight of such day 6 | As after sunset fadeth in the west, 7 | Which by and by black night doth take away, 8 | Death's second self, that seals up all in rest. 9 | In me thou see'st the glowing of such fire 10 | That on the ashes of his youth doth lie, 11 | As the death-bed whereon it must expire 12 | Consumed with that which it was nourish'd by. 13 | This thou perceivest, which makes thy love more strong, 14 | To love that well which thou must leave ere long. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-074.txt: -------------------------------------------------------------------------------- 1 | But be contented: when that fell arrest 2 | Without all bail shall carry me away, 3 | My life hath in this line some interest, 4 | Which for memorial still with thee shall stay. 5 | When thou reviewest this, thou dost review 6 | The very part was consecrate to thee: 7 | The earth can have but earth, which is his due; 8 | My spirit is thine, the better part of me: 9 | So then thou hast but lost the dregs of life, 10 | The prey of worms, my body being dead, 11 | The coward conquest of a wretch's knife, 12 | Too base of thee to be remembered. 13 | The worth of that is that which it contains, 14 | And that is this, and this with thee remains. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-075.txt: -------------------------------------------------------------------------------- 1 | So are you to my thoughts as food to life, 2 | Or as sweet-season'd showers are to the ground; 3 | And for the peace of you I hold such strife 4 | As 'twixt a miser and his wealth is found; 5 | Now proud as an enjoyer and anon 6 | Doubting the filching age will steal his treasure, 7 | Now counting best to be with you alone, 8 | Then better'd that the world may see my pleasure; 9 | Sometime all full with feasting on your sight 10 | And by and by clean starved for a look; 11 | Possessing or pursuing no delight, 12 | Save what is had or must from you be took. 13 | Thus do I pine and surfeit day by day, 14 | Or gluttoning on all, or all away. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-076.txt: -------------------------------------------------------------------------------- 1 | Why is my verse so barren of new pride, 2 | So far from variation or quick change? 3 | Why with the time do I not glance aside 4 | To new-found methods and to compounds strange? 5 | Why write I still all one, ever the same, 6 | And keep invention in a noted weed, 7 | That every word doth almost tell my name, 8 | Showing their birth and where they did proceed? 9 | O, know, sweet love, I always write of you, 10 | And you and love are still my argument; 11 | So all my best is dressing old words new, 12 | Spending again what is already spent: 13 | For as the sun is daily new and old, 14 | So is my love still telling what is told. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-077.txt: -------------------------------------------------------------------------------- 1 | Thy glass will show thee how thy beauties wear, 2 | Thy dial how thy precious minutes waste; 3 | The vacant leaves thy mind's imprint will bear, 4 | And of this book this learning mayst thou taste. 5 | The wrinkles which thy glass will truly show 6 | Of mouthed graves will give thee memory; 7 | Thou by thy dial's shady stealth mayst know 8 | Time's thievish progress to eternity. 9 | Look, what thy memory can not contain 10 | Commit to these waste blanks, and thou shalt find 11 | Those children nursed, deliver'd from thy brain, 12 | To take a new acquaintance of thy mind. 13 | These offices, so oft as thou wilt look, 14 | Shall profit thee and much enrich thy book. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-078.txt: -------------------------------------------------------------------------------- 1 | So oft have I invoked thee for my Muse 2 | And found such fair assistance in my verse 3 | As every alien pen hath got my use 4 | And under thee their poesy disperse. 5 | Thine eyes that taught the dumb on high to sing 6 | And heavy ignorance aloft to fly 7 | Have added feathers to the learned's wing 8 | And given grace a double majesty. 9 | Yet be most proud of that which I compile, 10 | Whose influence is thine and born of thee: 11 | In others' works thou dost but mend the style, 12 | And arts with thy sweet graces graced be; 13 | But thou art all my art and dost advance 14 | As high as learning my rude ignorance. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-079.txt: -------------------------------------------------------------------------------- 1 | Whilst I alone did call upon thy aid, 2 | My verse alone had all thy gentle grace, 3 | But now my gracious numbers are decay'd 4 | And my sick Muse doth give another place. 5 | I grant, sweet love, thy lovely argument 6 | Deserves the travail of a worthier pen, 7 | Yet what of thee thy poet doth invent 8 | He robs thee of and pays it thee again. 9 | He lends thee virtue and he stole that word 10 | From thy behavior; beauty doth he give 11 | And found it in thy cheek; he can afford 12 | No praise to thee but what in thee doth live. 13 | Then thank him not for that which he doth say, 14 | Since what he owes thee thou thyself dost pay. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-080.txt: -------------------------------------------------------------------------------- 1 | O, how I faint when I of you do write, 2 | Knowing a better spirit doth use your name, 3 | And in the praise thereof spends all his might, 4 | To make me tongue-tied, speaking of your fame! 5 | But since your worth, wide as the ocean is, 6 | The humble as the proudest sail doth bear, 7 | My saucy bark inferior far to his 8 | On your broad main doth wilfully appear. 9 | Your shallowest help will hold me up afloat, 10 | Whilst he upon your soundless deep doth ride; 11 | Or being wreck'd, I am a worthless boat, 12 | He of tall building and of goodly pride: 13 | Then if he thrive and I be cast away, 14 | The worst was this; my love was my decay. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-081.txt: -------------------------------------------------------------------------------- 1 | Or I shall live your epitaph to make, 2 | Or you survive when I in earth am rotten; 3 | From hence your memory death cannot take, 4 | Although in me each part will be forgotten. 5 | Your name from hence immortal life shall have, 6 | Though I, once gone, to all the world must die: 7 | The earth can yield me but a common grave, 8 | When you entombed in men's eyes shall lie. 9 | Your monument shall be my gentle verse, 10 | Which eyes not yet created shall o'er-read, 11 | And tongues to be your being shall rehearse 12 | When all the breathers of this world are dead; 13 | You still shall live--such virtue hath my pen-- 14 | Where breath most breathes, even in the mouths of men. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-082.txt: -------------------------------------------------------------------------------- 1 | I grant thou wert not married to my Muse 2 | And therefore mayst without attaint o'erlook 3 | The dedicated words which writers use 4 | Of their fair subject, blessing every book 5 | Thou art as fair in knowledge as in hue, 6 | Finding thy worth a limit past my praise, 7 | And therefore art enforced to seek anew 8 | Some fresher stamp of the time-bettering days 9 | And do so, love; yet when they have devised 10 | What strained touches rhetoric can lend, 11 | Thou truly fair wert truly sympathized 12 | In true plain words by thy true-telling friend; 13 | And their gross painting might be better used 14 | Where cheeks need blood; in thee it is abused. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-083.txt: -------------------------------------------------------------------------------- 1 | I never saw that you did painting need 2 | And therefore to your fair no painting set; 3 | I found, or thought I found, you did exceed 4 | The barren tender of a poet's debt; 5 | And therefore have I slept in your report, 6 | That you yourself being extant well might show 7 | How far a modern quill doth come too short, 8 | Speaking of worth, what worth in you doth grow. 9 | This silence for my sin you did impute, 10 | Which shall be most my glory, being dumb; 11 | For I impair not beauty being mute, 12 | When others would give life and bring a tomb. 13 | There lives more life in one of your fair eyes 14 | Than both your poets can in praise devise. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-084.txt: -------------------------------------------------------------------------------- 1 | Who is it that says most? which can say more 2 | Than this rich praise, that you alone are you? 3 | In whose confine immured is the store 4 | Which should example where your equal grew. 5 | Lean penury within that pen doth dwell 6 | That to his subject lends not some small glory; 7 | But he that writes of you, if he can tell 8 | That you are you, so dignifies his story, 9 | Let him but copy what in you is writ, 10 | Not making worse what nature made so clear, 11 | And such a counterpart shall fame his wit, 12 | Making his style admired every where. 13 | You to your beauteous blessings add a curse, 14 | Being fond on praise, which makes your praises worse. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-085.txt: -------------------------------------------------------------------------------- 1 | My tongue-tied Muse in manners holds her still, 2 | While comments of your praise, richly compiled, 3 | Reserve their character with golden quill 4 | And precious phrase by all the Muses filed. 5 | I think good thoughts whilst other write good words, 6 | And like unletter'd clerk still cry 'Amen' 7 | To every hymn that able spirit affords 8 | In polish'd form of well-refined pen. 9 | Hearing you praised, I say ''Tis so, 'tis true,' 10 | And to the most of praise add something more; 11 | But that is in my thought, whose love to you, 12 | Though words come hindmost, holds his rank before. 13 | Then others for the breath of words respect, 14 | Me for my dumb thoughts, speaking in effect. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-086.txt: -------------------------------------------------------------------------------- 1 | Was it the proud full sail of his great verse, 2 | Bound for the prize of all too precious you, 3 | That did my ripe thoughts in my brain inhearse, 4 | Making their tomb the womb wherein they grew? 5 | Was it his spirit, by spirits taught to write 6 | Above a mortal pitch, that struck me dead? 7 | No, neither he, nor his compeers by night 8 | Giving him aid, my verse astonished. 9 | He, nor that affable familiar ghost 10 | Which nightly gulls him with intelligence 11 | As victors of my silence cannot boast; 12 | I was not sick of any fear from thence: 13 | But when your countenance fill'd up his line, 14 | Then lack'd I matter; that enfeebled mine. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-087.txt: -------------------------------------------------------------------------------- 1 | Farewell! thou art too dear for my possessing, 2 | And like enough thou know'st thy estimate: 3 | The charter of thy worth gives thee releasing; 4 | My bonds in thee are all determinate. 5 | For how do I hold thee but by thy granting? 6 | And for that riches where is my deserving? 7 | The cause of this fair gift in me is wanting, 8 | And so my patent back again is swerving. 9 | Thyself thou gavest, thy own worth then not knowing, 10 | Or me, to whom thou gavest it, else mistaking; 11 | So thy great gift, upon misprision growing, 12 | Comes home again, on better judgment making. 13 | Thus have I had thee, as a dream doth flatter, 14 | In sleep a king, but waking no such matter. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-088.txt: -------------------------------------------------------------------------------- 1 | When thou shalt be disposed to set me light, 2 | And place my merit in the eye of scorn, 3 | Upon thy side against myself I'll fight, 4 | And prove thee virtuous, though thou art forsworn. 5 | With mine own weakness being best acquainted, 6 | Upon thy part I can set down a story 7 | Of faults conceal'd, wherein I am attainted, 8 | That thou in losing me shalt win much glory: 9 | And I by this will be a gainer too; 10 | For bending all my loving thoughts on thee, 11 | The injuries that to myself I do, 12 | Doing thee vantage, double-vantage me. 13 | Such is my love, to thee I so belong, 14 | That for thy right myself will bear all wrong. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-089.txt: -------------------------------------------------------------------------------- 1 | Say that thou didst forsake me for some fault, 2 | And I will comment upon that offence; 3 | Speak of my lameness, and I straight will halt, 4 | Against thy reasons making no defence. 5 | Thou canst not, love, disgrace me half so ill, 6 | To set a form upon desired change, 7 | As I'll myself disgrace: knowing thy will, 8 | I will acquaintance strangle and look strange, 9 | Be absent from thy walks, and in my tongue 10 | Thy sweet beloved name no more shall dwell, 11 | Lest I, too much profane, should do it wrong 12 | And haply of our old acquaintance tell. 13 | For thee against myself I'll vow debate, 14 | For I must ne'er love him whom thou dost hate. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-090.txt: -------------------------------------------------------------------------------- 1 | Then hate me when thou wilt; if ever, now; 2 | Now, while the world is bent my deeds to cross, 3 | Join with the spite of fortune, make me bow, 4 | And do not drop in for an after-loss: 5 | Ah, do not, when my heart hath 'scoped this sorrow, 6 | Come in the rearward of a conquer'd woe; 7 | Give not a windy night a rainy morrow, 8 | To linger out a purposed overthrow. 9 | If thou wilt leave me, do not leave me last, 10 | When other petty griefs have done their spite 11 | But in the onset come; so shall I taste 12 | At first the very worst of fortune's might, 13 | And other strains of woe, which now seem woe, 14 | Compared with loss of thee will not seem so. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-091.txt: -------------------------------------------------------------------------------- 1 | Some glory in their birth, some in their skill, 2 | Some in their wealth, some in their bodies' force, 3 | Some in their garments, though new-fangled ill, 4 | Some in their hawks and hounds, some in their horse; 5 | And every humour hath his adjunct pleasure, 6 | Wherein it finds a joy above the rest: 7 | But these particulars are not my measure; 8 | All these I better in one general best. 9 | Thy love is better than high birth to me, 10 | Richer than wealth, prouder than garments' cost, 11 | Of more delight than hawks or horses be; 12 | And having thee, of all men's pride I boast: 13 | Wretched in this alone, that thou mayst take 14 | All this away and me most wretched make. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-092.txt: -------------------------------------------------------------------------------- 1 | But do thy worst to steal thyself away, 2 | For term of life thou art assured mine, 3 | And life no longer than thy love will stay, 4 | For it depends upon that love of thine. 5 | Then need I not to fear the worst of wrongs, 6 | When in the least of them my life hath end. 7 | I see a better state to me belongs 8 | Than that which on thy humour doth depend; 9 | Thou canst not vex me with inconstant mind, 10 | Since that my life on thy revolt doth lie. 11 | O, what a happy title do I find, 12 | Happy to have thy love, happy to die! 13 | But what's so blessed-fair that fears no blot? 14 | Thou mayst be false, and yet I know it not. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-093.txt: -------------------------------------------------------------------------------- 1 | So shall I live, supposing thou art true, 2 | Like a deceived husband; so love's face 3 | May still seem love to me, though alter'd new; 4 | Thy looks with me, thy heart in other place: 5 | For there can live no hatred in thine eye, 6 | Therefore in that I cannot know thy change. 7 | In many's looks the false heart's history 8 | Is writ in moods and frowns and wrinkles strange, 9 | But heaven in thy creation did decree 10 | That in thy face sweet love should ever dwell; 11 | Whate'er thy thoughts or thy heart's workings be, 12 | Thy looks should nothing thence but sweetness tell. 13 | How like Eve's apple doth thy beauty grow, 14 | if thy sweet virtue answer not thy show! -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-094.txt: -------------------------------------------------------------------------------- 1 | They that have power to hurt and will do none, 2 | That do not do the thing they most do show, 3 | Who, moving others, are themselves as stone, 4 | Unmoved, cold, and to temptation slow, 5 | They rightly do inherit heaven's graces 6 | And husband nature's riches from expense; 7 | They are the lords and owners of their faces, 8 | Others but stewards of their excellence. 9 | The summer's flower is to the summer sweet, 10 | Though to itself it only live and die, 11 | But if that flower with base infection meet, 12 | The basest weed outbraves his dignity: 13 | For sweetest things turn sourest by their deeds; 14 | Lilies that fester smell far worse than weeds. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-095.txt: -------------------------------------------------------------------------------- 1 | How sweet and lovely dost thou make the shame 2 | Which, like a canker in the fragrant rose, 3 | Doth spot the beauty of thy budding name! 4 | O, in what sweets dost thou thy sins enclose! 5 | That tongue that tells the story of thy days, 6 | Making lascivious comments on thy sport, 7 | Cannot dispraise but in a kind of praise; 8 | Naming thy name blesses an ill report. 9 | O, what a mansion have those vices got 10 | Which for their habitation chose out thee, 11 | Where beauty's veil doth cover every blot, 12 | And all things turn to fair that eyes can see! 13 | Take heed, dear heart, of this large privilege; 14 | The hardest knife ill-used doth lose his edge. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-096.txt: -------------------------------------------------------------------------------- 1 | Some say thy fault is youth, some wantonness; 2 | Some say thy grace is youth and gentle sport; 3 | Both grace and faults are loved of more and less; 4 | Thou makest faults graces that to thee resort. 5 | As on the finger of a throned queen 6 | The basest jewel will be well esteem'd, 7 | So are those errors that in thee are seen 8 | To truths translated and for true things deem'd. 9 | How many lambs might the stern wolf betray, 10 | If like a lamb he could his looks translate! 11 | How many gazers mightst thou lead away, 12 | If thou wouldst use the strength of all thy state! 13 | But do not so; I love thee in such sort 14 | As, thou being mine, mine is thy good report. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-097.txt: -------------------------------------------------------------------------------- 1 | How like a winter hath my absence been 2 | From thee, the pleasure of the fleeting year! 3 | What freezings have I felt, what dark days seen! 4 | What old December's bareness every where! 5 | And yet this time removed was summer's time, 6 | The teeming autumn, big with rich increase, 7 | Bearing the wanton burden of the prime, 8 | Like widow'd wombs after their lords' decease: 9 | Yet this abundant issue seem'd to me 10 | But hope of orphans and unfather'd fruit; 11 | For summer and his pleasures wait on thee, 12 | And, thou away, the very birds are mute; 13 | Or, if they sing, 'tis with so dull a cheer 14 | That leaves look pale, dreading the winter's near. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-098.txt: -------------------------------------------------------------------------------- 1 | From you have I been absent in the spring, 2 | When proud-pied April dress'd in all his trim 3 | Hath put a spirit of youth in every thing, 4 | That heavy Saturn laugh'd and leap'd with him. 5 | Yet nor the lays of birds nor the sweet smell 6 | Of different flowers in odour and in hue 7 | Could make me any summer's story tell, 8 | Or from their proud lap pluck them where they grew; 9 | Nor did I wonder at the lily's white, 10 | Nor praise the deep vermilion in the rose; 11 | They were but sweet, but figures of delight, 12 | Drawn after you, you pattern of all those. 13 | Yet seem'd it winter still, and, you away, 14 | As with your shadow I with these did play: -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-099.txt: -------------------------------------------------------------------------------- 1 | The forward violet thus did I chide: 2 | Sweet thief, whence didst thou steal thy sweet that smells, 3 | If not from my love's breath? The purple pride 4 | Which on thy soft cheek for complexion dwells 5 | In my love's veins thou hast too grossly dyed. 6 | The lily I condemned for thy hand, 7 | And buds of marjoram had stol'n thy hair: 8 | The roses fearfully on thorns did stand, 9 | One blushing shame, another white despair; 10 | A third, nor red nor white, had stol'n of both 11 | And to his robbery had annex'd thy breath; 12 | But, for his theft, in pride of all his growth 13 | A vengeful canker eat him up to death. 14 | More flowers I noted, yet I none could see 15 | But sweet or colour it had stol'n from thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-100.txt: -------------------------------------------------------------------------------- 1 | Where art thou, Muse, that thou forget'st so long 2 | To speak of that which gives thee all thy might? 3 | Spend'st thou thy fury on some worthless song, 4 | Darkening thy power to lend base subjects light? 5 | Return, forgetful Muse, and straight redeem 6 | In gentle numbers time so idly spent; 7 | Sing to the ear that doth thy lays esteem 8 | And gives thy pen both skill and argument. 9 | Rise, resty Muse, my love's sweet face survey, 10 | If Time have any wrinkle graven there; 11 | If any, be a satire to decay, 12 | And make Time's spoils despised every where. 13 | Give my love fame faster than Time wastes life; 14 | So thou prevent'st his scythe and crooked knife. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-101.txt: -------------------------------------------------------------------------------- 1 | O truant Muse, what shall be thy amends 2 | For thy neglect of truth in beauty dyed? 3 | Both truth and beauty on my love depends; 4 | So dost thou too, and therein dignified. 5 | Make answer, Muse: wilt thou not haply say 6 | 'Truth needs no colour, with his colour fix'd; 7 | Beauty no pencil, beauty's truth to lay; 8 | But best is best, if never intermix'd?' 9 | Because he needs no praise, wilt thou be dumb? 10 | Excuse not silence so; for't lies in thee 11 | To make him much outlive a gilded tomb, 12 | And to be praised of ages yet to be. 13 | Then do thy office, Muse; I teach thee how 14 | To make him seem long hence as he shows now. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-102.txt: -------------------------------------------------------------------------------- 1 | My love is strengthen'd, though more weak in seeming; 2 | I love not less, though less the show appear: 3 | That love is merchandized whose rich esteeming 4 | The owner's tongue doth publish every where. 5 | Our love was new and then but in the spring 6 | When I was wont to greet it with my lays, 7 | As Philomel in summer's front doth sing 8 | And stops her pipe in growth of riper days: 9 | Not that the summer is less pleasant now 10 | Than when her mournful hymns did hush the night, 11 | But that wild music burthens every bough 12 | And sweets grown common lose their dear delight. 13 | Therefore like her I sometime hold my tongue, 14 | Because I would not dull you with my song. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-103.txt: -------------------------------------------------------------------------------- 1 | Alack, what poverty my Muse brings forth, 2 | That having such a scope to show her pride, 3 | The argument all bare is of more worth 4 | Than when it hath my added praise beside! 5 | O, blame me not, if I no more can write! 6 | Look in your glass, and there appears a face 7 | That over-goes my blunt invention quite, 8 | Dulling my lines and doing me disgrace. 9 | Were it not sinful then, striving to mend, 10 | To mar the subject that before was well? 11 | For to no other pass my verses tend 12 | Than of your graces and your gifts to tell; 13 | And more, much more, than in my verse can sit 14 | Your own glass shows you when you look in it. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-104.txt: -------------------------------------------------------------------------------- 1 | To me, fair friend, you never can be old, 2 | For as you were when first your eye I eyed, 3 | Such seems your beauty still. Three winters cold 4 | Have from the forests shook three summers' pride, 5 | Three beauteous springs to yellow autumn turn'd 6 | In process of the seasons have I seen, 7 | Three April perfumes in three hot Junes burn'd, 8 | Since first I saw you fresh, which yet are green. 9 | Ah! yet doth beauty, like a dial-hand, 10 | Steal from his figure and no pace perceived; 11 | So your sweet hue, which methinks still doth stand, 12 | Hath motion and mine eye may be deceived: 13 | For fear of which, hear this, thou age unbred; 14 | Ere you were born was beauty's summer dead. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-105.txt: -------------------------------------------------------------------------------- 1 | Let not my love be call'd idolatry, 2 | Nor my beloved as an idol show, 3 | Since all alike my songs and praises be 4 | To one, of one, still such, and ever so. 5 | Kind is my love to-day, to-morrow kind, 6 | Still constant in a wondrous excellence; 7 | Therefore my verse to constancy confined, 8 | One thing expressing, leaves out difference. 9 | 'Fair, kind and true' is all my argument, 10 | 'Fair, kind, and true' varying to other words; 11 | And in this change is my invention spent, 12 | Three themes in one, which wondrous scope affords. 13 | 'Fair, kind, and true,' have often lived alone, 14 | Which three till now never kept seat in one. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-106.txt: -------------------------------------------------------------------------------- 1 | When in the chronicle of wasted time 2 | I see descriptions of the fairest wights, 3 | And beauty making beautiful old rhyme 4 | In praise of ladies dead and lovely knights, 5 | Then, in the blazon of sweet beauty's best, 6 | Of hand, of foot, of lip, of eye, of brow, 7 | I see their antique pen would have express'd 8 | Even such a beauty as you master now. 9 | So all their praises are but prophecies 10 | Of this our time, all you prefiguring; 11 | And, for they look'd but with divining eyes, 12 | They had not skill enough your worth to sing: 13 | For we, which now behold these present days, 14 | Had eyes to wonder, but lack tongues to praise. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-107.txt: -------------------------------------------------------------------------------- 1 | Not mine own fears, nor the prophetic soul 2 | Of the wide world dreaming on things to come, 3 | Can yet the lease of my true love control, 4 | Supposed as forfeit to a confined doom. 5 | The mortal moon hath her eclipse endured 6 | And the sad augurs mock their own presage; 7 | Incertainties now crown themselves assured 8 | And peace proclaims olives of endless age. 9 | Now with the drops of this most balmy time 10 | My love looks fresh, and death to me subscribes, 11 | Since, spite of him, I'll live in this poor rhyme, 12 | While he insults o'er dull and speechless tribes: 13 | And thou in this shalt find thy monument, 14 | When tyrants' crests and tombs of brass are spent. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-108.txt: -------------------------------------------------------------------------------- 1 | What's in the brain that ink may character 2 | Which hath not figured to thee my true spirit? 3 | What's new to speak, what new to register, 4 | That may express my love or thy dear merit? 5 | Nothing, sweet boy; but yet, like prayers divine, 6 | I must, each day say o'er the very same, 7 | Counting no old thing old, thou mine, I thine, 8 | Even as when first I hallow'd thy fair name. 9 | So that eternal love in love's fresh case 10 | Weighs not the dust and injury of age, 11 | Nor gives to necessary wrinkles place, 12 | But makes antiquity for aye his page, 13 | Finding the first conceit of love there bred 14 | Where time and outward form would show it dead. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-109.txt: -------------------------------------------------------------------------------- 1 | O, never say that I was false of heart, 2 | Though absence seem'd my flame to qualify. 3 | As easy might I from myself depart 4 | As from my soul, which in thy breast doth lie: 5 | That is my home of love: if I have ranged, 6 | Like him that travels I return again, 7 | Just to the time, not with the time exchanged, 8 | So that myself bring water for my stain. 9 | Never believe, though in my nature reign'd 10 | All frailties that besiege all kinds of blood, 11 | That it could so preposterously be stain'd, 12 | To leave for nothing all thy sum of good; 13 | For nothing this wide universe I call, 14 | Save thou, my rose; in it thou art my all. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-110.txt: -------------------------------------------------------------------------------- 1 | Alas, 'tis true I have gone here and there 2 | And made myself a motley to the view, 3 | Gored mine own thoughts, sold cheap what is most dear, 4 | Made old offences of affections new; 5 | Most true it is that I have look'd on truth 6 | Askance and strangely: but, by all above, 7 | These blenches gave my heart another youth, 8 | And worse essays proved thee my best of love. 9 | Now all is done, have what shall have no end: 10 | Mine appetite I never more will grind 11 | On newer proof, to try an older friend, 12 | A god in love, to whom I am confined. 13 | Then give me welcome, next my heaven the best, 14 | Even to thy pure and most most loving breast. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-111.txt: -------------------------------------------------------------------------------- 1 | O, for my sake do you with Fortune chide, 2 | The guilty goddess of my harmful deeds, 3 | That did not better for my life provide 4 | Than public means which public manners breeds. 5 | Thence comes it that my name receives a brand, 6 | And almost thence my nature is subdued 7 | To what it works in, like the dyer's hand: 8 | Pity me then and wish I were renew'd; 9 | Whilst, like a willing patient, I will drink 10 | Potions of eisel 'gainst my strong infection 11 | No bitterness that I will bitter think, 12 | Nor double penance, to correct correction. 13 | Pity me then, dear friend, and I assure ye 14 | Even that your pity is enough to cure me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-112.txt: -------------------------------------------------------------------------------- 1 | Your love and pity doth the impression fill 2 | Which vulgar scandal stamp'd upon my brow; 3 | For what care I who calls me well or ill, 4 | So you o'er-green my bad, my good allow? 5 | You are my all the world, and I must strive 6 | To know my shames and praises from your tongue: 7 | None else to me, nor I to none alive, 8 | That my steel'd sense or changes right or wrong. 9 | In so profound abysm I throw all care 10 | Of others' voices, that my adder's sense 11 | To critic and to flatterer stopped are. 12 | Mark how with my neglect I do dispense: 13 | You are so strongly in my purpose bred 14 | That all the world besides methinks are dead. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-113.txt: -------------------------------------------------------------------------------- 1 | Since I left you, mine eye is in my mind; 2 | And that which governs me to go about 3 | Doth part his function and is partly blind, 4 | Seems seeing, but effectually is out; 5 | For it no form delivers to the heart 6 | Of bird of flower, or shape, which it doth latch: 7 | Of his quick objects hath the mind no part, 8 | Nor his own vision holds what it doth catch: 9 | For if it see the rudest or gentlest sight, 10 | The most sweet favour or deformed'st creature, 11 | The mountain or the sea, the day or night, 12 | The crow or dove, it shapes them to your feature: 13 | Incapable of more, replete with you, 14 | My most true mind thus makes mine eye untrue. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-114.txt: -------------------------------------------------------------------------------- 1 | Or whether doth my mind, being crown'd with you, 2 | Drink up the monarch's plague, this flattery? 3 | Or whether shall I say, mine eye saith true, 4 | And that your love taught it this alchemy, 5 | To make of monsters and things indigest 6 | Such cherubins as your sweet self resemble, 7 | Creating every bad a perfect best, 8 | As fast as objects to his beams assemble? 9 | O,'tis the first; 'tis flattery in my seeing, 10 | And my great mind most kingly drinks it up: 11 | Mine eye well knows what with his gust is 'greeing, 12 | And to his palate doth prepare the cup: 13 | If it be poison'd, 'tis the lesser sin 14 | That mine eye loves it and doth first begin. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-115.txt: -------------------------------------------------------------------------------- 1 | Those lines that I before have writ do lie, 2 | Even those that said I could not love you dearer: 3 | Yet then my judgment knew no reason why 4 | My most full flame should afterwards burn clearer. 5 | But reckoning time, whose million'd accidents 6 | Creep in 'twixt vows and change decrees of kings, 7 | Tan sacred beauty, blunt the sharp'st intents, 8 | Divert strong minds to the course of altering things; 9 | Alas, why, fearing of time's tyranny, 10 | Might I not then say 'Now I love you best,' 11 | When I was certain o'er incertainty, 12 | Crowning the present, doubting of the rest? 13 | Love is a babe; then might I not say so, 14 | To give full growth to that which still doth grow? -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-116.txt: -------------------------------------------------------------------------------- 1 | Let me not to the marriage of true minds 2 | Admit impediments. Love is not love 3 | Which alters when it alteration finds, 4 | Or bends with the remover to remove: 5 | O no! it is an ever-fixed mark 6 | That looks on tempests and is never shaken; 7 | It is the star to every wandering bark, 8 | Whose worth's unknown, although his height be taken. 9 | Love's not Time's fool, though rosy lips and cheeks 10 | Within his bending sickle's compass come: 11 | Love alters not with his brief hours and weeks, 12 | But bears it out even to the edge of doom. 13 | If this be error and upon me proved, 14 | I never writ, nor no man ever loved. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-117.txt: -------------------------------------------------------------------------------- 1 | Accuse me thus: that I have scanted all 2 | Wherein I should your great deserts repay, 3 | Forgot upon your dearest love to call, 4 | Whereto all bonds do tie me day by day; 5 | That I have frequent been with unknown minds 6 | And given to time your own dear-purchased right 7 | That I have hoisted sail to all the winds 8 | Which should transport me farthest from your sight. 9 | Book both my wilfulness and errors down 10 | And on just proof surmise accumulate; 11 | Bring me within the level of your frown, 12 | But shoot not at me in your waken'd hate; 13 | Since my appeal says I did strive to prove 14 | The constancy and virtue of your love. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-118.txt: -------------------------------------------------------------------------------- 1 | Like as, to make our appetites more keen, 2 | With eager compounds we our palate urge, 3 | As, to prevent our maladies unseen, 4 | We sicken to shun sickness when we purge, 5 | Even so, being full of your ne'er-cloying sweetness, 6 | To bitter sauces did I frame my feeding 7 | And, sick of welfare, found a kind of meetness 8 | To be diseased ere that there was true needing. 9 | Thus policy in love, to anticipate 10 | The ills that were not, grew to faults assured 11 | And brought to medicine a healthful state 12 | Which, rank of goodness, would by ill be cured: 13 | But thence I learn, and find the lesson true, 14 | Drugs poison him that so fell sick of you. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-119.txt: -------------------------------------------------------------------------------- 1 | What potions have I drunk of Siren tears, 2 | Distill'd from limbecks foul as hell within, 3 | Applying fears to hopes and hopes to fears, 4 | Still losing when I saw myself to win! 5 | What wretched errors hath my heart committed, 6 | Whilst it hath thought itself so blessed never! 7 | How have mine eyes out of their spheres been fitted 8 | In the distraction of this madding fever! 9 | O benefit of ill! now I find true 10 | That better is by evil still made better; 11 | And ruin'd love, when it is built anew, 12 | Grows fairer than at first, more strong, far greater. 13 | So I return rebuked to my content 14 | And gain by ill thrice more than I have spent. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-120.txt: -------------------------------------------------------------------------------- 1 | That you were once unkind befriends me now, 2 | And for that sorrow which I then did feel 3 | Needs must I under my transgression bow, 4 | Unless my nerves were brass or hammer'd steel. 5 | For if you were by my unkindness shaken 6 | As I by yours, you've pass'd a hell of time, 7 | And I, a tyrant, have no leisure taken 8 | To weigh how once I suffered in your crime. 9 | O, that our night of woe might have remember'd 10 | My deepest sense, how hard true sorrow hits, 11 | And soon to you, as you to me, then tender'd 12 | The humble salve which wounded bosoms fits! 13 | But that your trespass now becomes a fee; 14 | Mine ransoms yours, and yours must ransom me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-121.txt: -------------------------------------------------------------------------------- 1 | 'Tis better to be vile than vile esteem'd, 2 | When not to be receives reproach of being, 3 | And the just pleasure lost which is so deem'd 4 | Not by our feeling but by others' seeing: 5 | For why should others false adulterate eyes 6 | Give salutation to my sportive blood? 7 | Or on my frailties why are frailer spies, 8 | Which in their wills count bad what I think good? 9 | No, I am that I am, and they that level 10 | At my abuses reckon up their own: 11 | I may be straight, though they themselves be bevel; 12 | By their rank thoughts my deeds must not be shown; 13 | Unless this general evil they maintain, 14 | All men are bad, and in their badness reign. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-122.txt: -------------------------------------------------------------------------------- 1 | Thy gift, thy tables, are within my brain 2 | Full character'd with lasting memory, 3 | Which shall above that idle rank remain 4 | Beyond all date, even to eternity; 5 | Or at the least, so long as brain and heart 6 | Have faculty by nature to subsist; 7 | Till each to razed oblivion yield his part 8 | Of thee, thy record never can be miss'd. 9 | That poor retention could not so much hold, 10 | Nor need I tallies thy dear love to score; 11 | Therefore to give them from me was I bold, 12 | To trust those tables that receive thee more: 13 | To keep an adjunct to remember thee 14 | Were to import forgetfulness in me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-123.txt: -------------------------------------------------------------------------------- 1 | No, Time, thou shalt not boast that I do change: 2 | Thy pyramids built up with newer might 3 | To me are nothing novel, nothing strange; 4 | They are but dressings of a former sight. 5 | Our dates are brief, and therefore we admire 6 | What thou dost foist upon us that is old, 7 | And rather make them born to our desire 8 | Than think that we before have heard them told. 9 | Thy registers and thee I both defy, 10 | Not wondering at the present nor the past, 11 | For thy records and what we see doth lie, 12 | Made more or less by thy continual haste. 13 | This I do vow and this shall ever be; 14 | I will be true, despite thy scythe and thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-124.txt: -------------------------------------------------------------------------------- 1 | If my dear love were but the child of state, 2 | It might for Fortune's bastard be unfather'd' 3 | As subject to Time's love or to Time's hate, 4 | Weeds among weeds, or flowers with flowers gather'd. 5 | No, it was builded far from accident; 6 | It suffers not in smiling pomp, nor falls 7 | Under the blow of thralled discontent, 8 | Whereto the inviting time our fashion calls: 9 | It fears not policy, that heretic, 10 | Which works on leases of short-number'd hours, 11 | But all alone stands hugely politic, 12 | That it nor grows with heat nor drowns with showers. 13 | To this I witness call the fools of time, 14 | Which die for goodness, who have lived for crime. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-125.txt: -------------------------------------------------------------------------------- 1 | Were 't aught to me I bore the canopy, 2 | With my extern the outward honouring, 3 | Or laid great bases for eternity, 4 | Which prove more short than waste or ruining? 5 | Have I not seen dwellers on form and favour 6 | Lose all, and more, by paying too much rent, 7 | For compound sweet forgoing simple savour, 8 | Pitiful thrivers, in their gazing spent? 9 | No, let me be obsequious in thy heart, 10 | And take thou my oblation, poor but free, 11 | Which is not mix'd with seconds, knows no art, 12 | But mutual render, only me for thee. 13 | Hence, thou suborn'd informer! a true soul 14 | When most impeach'd stands least in thy control. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-126.txt: -------------------------------------------------------------------------------- 1 | O thou, my lovely boy, who in thy power 2 | Dost hold Time's fickle glass, his sickle, hour; 3 | Who hast by waning grown, and therein show'st 4 | Thy lovers withering as thy sweet self grow'st; 5 | If Nature, sovereign mistress over wrack, 6 | As thou goest onwards, still will pluck thee back, 7 | She keeps thee to this purpose, that her skill 8 | May time disgrace and wretched minutes kill. 9 | Yet fear her, O thou minion of her pleasure! 10 | She may detain, but not still keep, her treasure: 11 | Her audit, though delay'd, answer'd must be, 12 | And her quietus is to render thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-127.txt: -------------------------------------------------------------------------------- 1 | In the old age black was not counted fair, 2 | Or if it were, it bore not beauty's name; 3 | But now is black beauty's successive heir, 4 | And beauty slander'd with a bastard shame: 5 | For since each hand hath put on nature's power, 6 | Fairing the foul with art's false borrow'd face, 7 | Sweet beauty hath no name, no holy bower, 8 | But is profaned, if not lives in disgrace. 9 | Therefore my mistress' brows are raven black, 10 | Her eyes so suited, and they mourners seem 11 | At such who, not born fair, no beauty lack, 12 | Slandering creation with a false esteem: 13 | Yet so they mourn, becoming of their woe, 14 | That every tongue says beauty should look so. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-128.txt: -------------------------------------------------------------------------------- 1 | How oft, when thou, my music, music play'st, 2 | Upon that blessed wood whose motion sounds 3 | With thy sweet fingers, when thou gently sway'st 4 | The wiry concord that mine ear confounds, 5 | Do I envy those jacks that nimble leap 6 | To kiss the tender inward of thy hand, 7 | Whilst my poor lips, which should that harvest reap, 8 | At the wood's boldness by thee blushing stand! 9 | To be so tickled, they would change their state 10 | And situation with those dancing chips, 11 | O'er whom thy fingers walk with gentle gait, 12 | Making dead wood more blest than living lips. 13 | Since saucy jacks so happy are in this, 14 | Give them thy fingers, me thy lips to kiss. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-129.txt: -------------------------------------------------------------------------------- 1 | The expense of spirit in a waste of shame 2 | Is lust in action; and till action, lust 3 | Is perjured, murderous, bloody, full of blame, 4 | Savage, extreme, rude, cruel, not to trust, 5 | Enjoy'd no sooner but despised straight, 6 | Past reason hunted, and no sooner had 7 | Past reason hated, as a swallow'd bait 8 | On purpose laid to make the taker mad; 9 | Mad in pursuit and in possession so; 10 | Had, having, and in quest to have, extreme; 11 | A bliss in proof, and proved, a very woe; 12 | Before, a joy proposed; behind, a dream. 13 | All this the world well knows; yet none knows well 14 | To shun the heaven that leads men to this hell. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-130.txt: -------------------------------------------------------------------------------- 1 | My mistress' eyes are nothing like the sun; 2 | Coral is far more red than her lips' red; 3 | If snow be white, why then her breasts are dun; 4 | If hairs be wires, black wires grow on her head. 5 | I have seen roses damask'd, red and white, 6 | But no such roses see I in her cheeks; 7 | And in some perfumes is there more delight 8 | Than in the breath that from my mistress reeks. 9 | I love to hear her speak, yet well I know 10 | That music hath a far more pleasing sound; 11 | I grant I never saw a goddess go; 12 | My mistress, when she walks, treads on the ground: 13 | And yet, by heaven, I think my love as rare 14 | As any she belied with false compare. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-131.txt: -------------------------------------------------------------------------------- 1 | Thou art as tyrannous, so as thou art, 2 | As those whose beauties proudly make them cruel; 3 | For well thou know'st to my dear doting heart 4 | Thou art the fairest and most precious jewel. 5 | Yet, in good faith, some say that thee behold 6 | Thy face hath not the power to make love groan: 7 | To say they err I dare not be so bold, 8 | Although I swear it to myself alone. 9 | And, to be sure that is not false I swear, 10 | A thousand groans, but thinking on thy face, 11 | One on another's neck, do witness bear 12 | Thy black is fairest in my judgment's place. 13 | In nothing art thou black save in thy deeds, 14 | And thence this slander, as I think, proceeds. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-132.txt: -------------------------------------------------------------------------------- 1 | Thine eyes I love, and they, as pitying me, 2 | Knowing thy heart torments me with disdain, 3 | Have put on black and loving mourners be, 4 | Looking with pretty ruth upon my pain. 5 | And truly not the morning sun of heaven 6 | Better becomes the grey cheeks of the east, 7 | Nor that full star that ushers in the even 8 | Doth half that glory to the sober west, 9 | As those two mourning eyes become thy face: 10 | O, let it then as well beseem thy heart 11 | To mourn for me, since mourning doth thee grace, 12 | And suit thy pity like in every part. 13 | Then will I swear beauty herself is black 14 | And all they foul that thy complexion lack. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-133.txt: -------------------------------------------------------------------------------- 1 | Beshrew that heart that makes my heart to groan 2 | For that deep wound it gives my friend and me! 3 | Is't not enough to torture me alone, 4 | But slave to slavery my sweet'st friend must be? 5 | Me from myself thy cruel eye hath taken, 6 | And my next self thou harder hast engross'd: 7 | Of him, myself, and thee, I am forsaken; 8 | A torment thrice threefold thus to be cross'd. 9 | Prison my heart in thy steel bosom's ward, 10 | But then my friend's heart let my poor heart bail; 11 | Whoe'er keeps me, let my heart be his guard; 12 | Thou canst not then use rigor in my gaol: 13 | And yet thou wilt; for I, being pent in thee, 14 | Perforce am thine, and all that is in me. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-134.txt: -------------------------------------------------------------------------------- 1 | So, now I have confess'd that he is thine, 2 | And I myself am mortgaged to thy will, 3 | Myself I'll forfeit, so that other mine 4 | Thou wilt restore, to be my comfort still: 5 | But thou wilt not, nor he will not be free, 6 | For thou art covetous and he is kind; 7 | He learn'd but surety-like to write for me 8 | Under that bond that him as fast doth bind. 9 | The statute of thy beauty thou wilt take, 10 | Thou usurer, that put'st forth all to use, 11 | And sue a friend came debtor for my sake; 12 | So him I lose through my unkind abuse. 13 | Him have I lost; thou hast both him and me: 14 | He pays the whole, and yet am I not free. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-135.txt: -------------------------------------------------------------------------------- 1 | Whoever hath her wish, thou hast thy 'Will,' 2 | And 'Will' to boot, and 'Will' in overplus; 3 | More than enough am I that vex thee still, 4 | To thy sweet will making addition thus. 5 | Wilt thou, whose will is large and spacious, 6 | Not once vouchsafe to hide my will in thine? 7 | Shall will in others seem right gracious, 8 | And in my will no fair acceptance shine? 9 | The sea all water, yet receives rain still 10 | And in abundance addeth to his store; 11 | So thou, being rich in 'Will,' add to thy 'Will' 12 | One will of mine, to make thy large 'Will' more. 13 | Let no unkind, no fair beseechers kill; 14 | Think all but one, and me in that one 'Will.' -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-136.txt: -------------------------------------------------------------------------------- 1 | If thy soul check thee that I come so near, 2 | Swear to thy blind soul that I was thy 'Will,' 3 | And will, thy soul knows, is admitted there; 4 | Thus far for love my love-suit, sweet, fulfil. 5 | 'Will' will fulfil the treasure of thy love, 6 | Ay, fill it full with wills, and my will one. 7 | In things of great receipt with ease we prove 8 | Among a number one is reckon'd none: 9 | Then in the number let me pass untold, 10 | Though in thy stores' account I one must be; 11 | For nothing hold me, so it please thee hold 12 | That nothing me, a something sweet to thee: 13 | Make but my name thy love, and love that still, 14 | And then thou lovest me, for my name is 'Will.' -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-137.txt: -------------------------------------------------------------------------------- 1 | Thou blind fool, Love, what dost thou to mine eyes, 2 | That they behold, and see not what they see? 3 | They know what beauty is, see where it lies, 4 | Yet what the best is take the worst to be. 5 | If eyes corrupt by over-partial looks 6 | Be anchor'd in the bay where all men ride, 7 | Why of eyes' falsehood hast thou forged hooks, 8 | Whereto the judgment of my heart is tied? 9 | Why should my heart think that a several plot 10 | Which my heart knows the wide world's common place? 11 | Or mine eyes seeing this, say this is not, 12 | To put fair truth upon so foul a face? 13 | In things right true my heart and eyes have erred, 14 | And to this false plague are they now transferr'd. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-138.txt: -------------------------------------------------------------------------------- 1 | When my love swears that she is made of truth 2 | I do believe her, though I know she lies, 3 | That she might think me some untutor'd youth, 4 | Unlearned in the world's false subtleties. 5 | Thus vainly thinking that she thinks me young, 6 | Although she knows my days are past the best, 7 | Simply I credit her false speaking tongue: 8 | On both sides thus is simple truth suppress'd. 9 | But wherefore says she not she is unjust? 10 | And wherefore say not I that I am old? 11 | O, love's best habit is in seeming trust, 12 | And age in love loves not to have years told: 13 | Therefore I lie with her and she with me, 14 | And in our faults by lies we flatter'd be. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-139.txt: -------------------------------------------------------------------------------- 1 | O, call not me to justify the wrong 2 | That thy unkindness lays upon my heart; 3 | Wound me not with thine eye but with thy tongue; 4 | Use power with power and slay me not by art. 5 | Tell me thou lovest elsewhere, but in my sight, 6 | Dear heart, forbear to glance thine eye aside: 7 | What need'st thou wound with cunning when thy might 8 | Is more than my o'er-press'd defense can bide? 9 | Let me excuse thee: ah! my love well knows 10 | Her pretty looks have been mine enemies, 11 | And therefore from my face she turns my foes, 12 | That they elsewhere might dart their injuries: 13 | Yet do not so; but since I am near slain, 14 | Kill me outright with looks and rid my pain. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-140.txt: -------------------------------------------------------------------------------- 1 | Be wise as thou art cruel; do not press 2 | My tongue-tied patience with too much disdain; 3 | Lest sorrow lend me words and words express 4 | The manner of my pity-wanting pain. 5 | If I might teach thee wit, better it were, 6 | Though not to love, yet, love, to tell me so; 7 | As testy sick men, when their deaths be near, 8 | No news but health from their physicians know; 9 | For if I should despair, I should grow mad, 10 | And in my madness might speak ill of thee: 11 | Now this ill-wresting world is grown so bad, 12 | Mad slanderers by mad ears believed be, 13 | That I may not be so, nor thou belied, 14 | Bear thine eyes straight, though thy proud heart go wide. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-141.txt: -------------------------------------------------------------------------------- 1 | In faith, I do not love thee with mine eyes, 2 | For they in thee a thousand errors note; 3 | But 'tis my heart that loves what they despise, 4 | Who in despite of view is pleased to dote; 5 | Nor are mine ears with thy tongue's tune delighted, 6 | Nor tender feeling, to base touches prone, 7 | Nor taste, nor smell, desire to be invited 8 | To any sensual feast with thee alone: 9 | But my five wits nor my five senses can 10 | Dissuade one foolish heart from serving thee, 11 | Who leaves unsway'd the likeness of a man, 12 | Thy proud hearts slave and vassal wretch to be: 13 | Only my plague thus far I count my gain, 14 | That she that makes me sin awards me pain. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-142.txt: -------------------------------------------------------------------------------- 1 | Love is my sin and thy dear virtue hate, 2 | Hate of my sin, grounded on sinful loving: 3 | O, but with mine compare thou thine own state, 4 | And thou shalt find it merits not reproving; 5 | Or, if it do, not from those lips of thine, 6 | That have profaned their scarlet ornaments 7 | And seal'd false bonds of love as oft as mine, 8 | Robb'd others' beds' revenues of their rents. 9 | Be it lawful I love thee, as thou lovest those 10 | Whom thine eyes woo as mine importune thee: 11 | Root pity in thy heart, that when it grows 12 | Thy pity may deserve to pitied be. 13 | If thou dost seek to have what thou dost hide, 14 | By self-example mayst thou be denied! -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-143.txt: -------------------------------------------------------------------------------- 1 | Lo! as a careful housewife runs to catch 2 | One of her feather'd creatures broke away, 3 | Sets down her babe and makes an swift dispatch 4 | In pursuit of the thing she would have stay, 5 | Whilst her neglected child holds her in chase, 6 | Cries to catch her whose busy care is bent 7 | To follow that which flies before her face, 8 | Not prizing her poor infant's discontent; 9 | So runn'st thou after that which flies from thee, 10 | Whilst I thy babe chase thee afar behind; 11 | But if thou catch thy hope, turn back to me, 12 | And play the mother's part, kiss me, be kind: 13 | So will I pray that thou mayst have thy 'Will,' 14 | If thou turn back, and my loud crying still. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-144.txt: -------------------------------------------------------------------------------- 1 | Two loves I have of comfort and despair, 2 | Which like two spirits do suggest me still: 3 | The better angel is a man right fair, 4 | The worser spirit a woman colour'd ill. 5 | To win me soon to hell, my female evil 6 | Tempteth my better angel from my side, 7 | And would corrupt my saint to be a devil, 8 | Wooing his purity with her foul pride. 9 | And whether that my angel be turn'd fiend 10 | Suspect I may, but not directly tell; 11 | But being both from me, both to each friend, 12 | I guess one angel in another's hell: 13 | Yet this shall I ne'er know, but live in doubt, 14 | Till my bad angel fire my good one out. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-145.txt: -------------------------------------------------------------------------------- 1 | Those lips that Love's own hand did make 2 | Breathed forth the sound that said 'I hate' 3 | To me that languish'd for her sake; 4 | But when she saw my woeful state, 5 | Straight in her heart did mercy come, 6 | Chiding that tongue that ever sweet 7 | Was used in giving gentle doom, 8 | And taught it thus anew to greet: 9 | 'I hate' she alter'd with an end, 10 | That follow'd it as gentle day 11 | Doth follow night, who like a fiend 12 | From heaven to hell is flown away; 13 | 'I hate' from hate away she threw, 14 | And saved my life, saying 'not you.' -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-146.txt: -------------------------------------------------------------------------------- 1 | Poor soul, the centre of my sinful earth, 2 | [ ] these rebel powers that thee array; 3 | Why dost thou pine within and suffer dearth, 4 | Painting thy outward walls so costly gay? 5 | Why so large cost, having so short a lease, 6 | Dost thou upon thy fading mansion spend? 7 | Shall worms, inheritors of this excess, 8 | Eat up thy charge? is this thy body's end? 9 | Then soul, live thou upon thy servant's loss, 10 | And let that pine to aggravate thy store; 11 | Buy terms divine in selling hours of dross; 12 | Within be fed, without be rich no more: 13 | So shalt thou feed on Death, that feeds on men, 14 | And Death once dead, there's no more dying then. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-147.txt: -------------------------------------------------------------------------------- 1 | My love is as a fever, longing still 2 | For that which longer nurseth the disease, 3 | Feeding on that which doth preserve the ill, 4 | The uncertain sickly appetite to please. 5 | My reason, the physician to my love, 6 | Angry that his prescriptions are not kept, 7 | Hath left me, and I desperate now approve 8 | Desire is death, which physic did except. 9 | Past cure I am, now reason is past care, 10 | And frantic-mad with evermore unrest; 11 | My thoughts and my discourse as madmen's are, 12 | At random from the truth vainly express'd; 13 | For I have sworn thee fair and thought thee bright, 14 | Who art as black as hell, as dark as night. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-148.txt: -------------------------------------------------------------------------------- 1 | O me, what eyes hath Love put in my head, 2 | Which have no correspondence with true sight! 3 | Or, if they have, where is my judgment fled, 4 | That censures falsely what they see aright? 5 | If that be fair whereon my false eyes dote, 6 | What means the world to say it is not so? 7 | If it be not, then love doth well denote 8 | Love's eye is not so true as all men's 'No.' 9 | How can it? O, how can Love's eye be true, 10 | That is so vex'd with watching and with tears? 11 | No marvel then, though I mistake my view; 12 | The sun itself sees not till heaven clears. 13 | O cunning Love! with tears thou keep'st me blind, 14 | Lest eyes well-seeing thy foul faults should find. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-149.txt: -------------------------------------------------------------------------------- 1 | Canst thou, O cruel! say I love thee not, 2 | When I against myself with thee partake? 3 | Do I not think on thee, when I forgot 4 | Am of myself, all tyrant, for thy sake? 5 | Who hateth thee that I do call my friend? 6 | On whom frown'st thou that I do fawn upon? 7 | Nay, if thou lour'st on me, do I not spend 8 | Revenge upon myself with present moan? 9 | What merit do I in myself respect, 10 | That is so proud thy service to despise, 11 | When all my best doth worship thy defect, 12 | Commanded by the motion of thine eyes? 13 | But, love, hate on, for now I know thy mind; 14 | Those that can see thou lovest, and I am blind. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-150.txt: -------------------------------------------------------------------------------- 1 | O, from what power hast thou this powerful might 2 | With insufficiency my heart to sway? 3 | To make me give the lie to my true sight, 4 | And swear that brightness doth not grace the day? 5 | Whence hast thou this becoming of things ill, 6 | That in the very refuse of thy deeds 7 | There is such strength and warrantize of skill 8 | That, in my mind, thy worst all best exceeds? 9 | Who taught thee how to make me love thee more 10 | The more I hear and see just cause of hate? 11 | O, though I love what others do abhor, 12 | With others thou shouldst not abhor my state: 13 | If thy unworthiness raised love in me, 14 | More worthy I to be beloved of thee. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-151.txt: -------------------------------------------------------------------------------- 1 | Love is too young to know what conscience is; 2 | Yet who knows not conscience is born of love? 3 | Then, gentle cheater, urge not my amiss, 4 | Lest guilty of my faults thy sweet self prove: 5 | For, thou betraying me, I do betray 6 | My nobler part to my gross body's treason; 7 | My soul doth tell my body that he may 8 | Triumph in love; flesh stays no father reason; 9 | But, rising at thy name, doth point out thee 10 | As his triumphant prize. Proud of this pride, 11 | He is contented thy poor drudge to be, 12 | To stand in thy affairs, fall by thy side. 13 | No want of conscience hold it that I call 14 | Her love for whose dear love I rise and fall. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-152.txt: -------------------------------------------------------------------------------- 1 | In loving thee thou know'st I am forsworn, 2 | But thou art twice forsworn, to me love swearing, 3 | In act thy bed-vow broke and new faith torn, 4 | In vowing new hate after new love bearing. 5 | But why of two oaths' breach do I accuse thee, 6 | When I break twenty? I am perjured most; 7 | For all my vows are oaths but to misuse thee 8 | And all my honest faith in thee is lost, 9 | For I have sworn deep oaths of thy deep kindness, 10 | Oaths of thy love, thy truth, thy constancy, 11 | And, to enlighten thee, gave eyes to blindness, 12 | Or made them swear against the thing they see; 13 | For I have sworn thee fair; more perjured eye, 14 | To swear against the truth so foul a lie! -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-153.txt: -------------------------------------------------------------------------------- 1 | Cupid laid by his brand, and fell asleep: 2 | A maid of Dian's this advantage found, 3 | And his love-kindling fire did quickly steep 4 | In a cold valley-fountain of that ground; 5 | Which borrow'd from this holy fire of Love 6 | A dateless lively heat, still to endure, 7 | And grew a seething bath, which yet men prove 8 | Against strange maladies a sovereign cure. 9 | But at my mistress' eye Love's brand new-fired, 10 | The boy for trial needs would touch my breast; 11 | I, sick withal, the help of bath desired, 12 | And thither hied, a sad distemper'd guest, 13 | But found no cure: the bath for my help lies 14 | Where Cupid got new fire--my mistress' eyes. -------------------------------------------------------------------------------- /poems/shakespeare_sonnets/sonnet-154.txt: -------------------------------------------------------------------------------- 1 | The little Love-god lying once asleep 2 | Laid by his side his heart-inflaming brand, 3 | Whilst many nymphs that vow'd chaste life to keep 4 | Came tripping by; but in her maiden hand 5 | The fairest votary took up that fire 6 | Which many legions of true hearts had warm'd; 7 | And so the general of hot desire 8 | Was sleeping by a virgin hand disarm'd. 9 | This brand she quenched in a cool well by, 10 | Which from Love's fire took heat perpetual, 11 | Growing a bath and healthful remedy 12 | For men diseased; but I, my mistress' thrall, 13 | Came there for cure, and this by that I prove, 14 | Love's fire heats water, water cools not love. -------------------------------------------------------------------------------- /poesy/__init__.py: -------------------------------------------------------------------------------- 1 | from .poesy import * 2 | -------------------------------------------------------------------------------- /poesy/poesy.py: -------------------------------------------------------------------------------- 1 | ## encoding=utf-8 2 | 3 | import sys,os,codecs 4 | import pickle,random,numpy as np 5 | import logging 6 | from collections import Counter 7 | from functools import reduce 8 | logger = logging.getLogger() 9 | logger.setLevel(logging.INFO) 10 | 11 | # Constants 12 | PATH_RHYME_SCHEMES = os.path.join(os.path.dirname(__file__),'schemes','rhyme_schemes.txt') 13 | RHYME_SCHEMES=None 14 | METER='default_english' 15 | 16 | MAX_RHYME_DIST=5 17 | 18 | # External Config 19 | PROSODIC_CONFIG = {} 20 | 21 | def test(): 22 | # poemtxt="""FROM fairest creatures we desire increase, 23 | # That thereby beauty's rose might never die, 24 | # But as the riper should by time decease, 25 | # His tender heir might bear his memory: 26 | # But thou, contracted to thine own bright eyes, 27 | # Feed'st thy light'st flame with self-substantial fuel, 28 | # Making a famine where abundance lies, 29 | # Thyself thy foe, to thy sweet self too cruel. 30 | # Thou that art now the world's fresh ornament 31 | # And only herald to the gaudy spring, 32 | # Within thine own bud buriest thy content 33 | # And, tender churl, makest waste in niggarding. 34 | # Pity the world, or else this glutton be, 35 | # To eat the world's due, by the grave and thee.""" 36 | poemtxt="""Since brass, nor stone, nor earth, nor boundless sea, 37 | But sad mortality o'er-sways their power, 38 | How with this rage shall beauty hold a plea, 39 | Whose action is no stronger than a flower? 40 | O, how shall summer's honey breath hold out 41 | Against the wreckful siege of battering days, 42 | When rocks impregnable are not so stout, 43 | Nor gates of steel so strong, but Time decays? 44 | O fearful meditation! where, alack, 45 | Shall Time's best jewel from Time's chest lie hid? 46 | Or what strong hand can hold his swift foot back? 47 | Or who his spoil of beauty can forbid? 48 | O, none, unless this miracle have might, 49 | That in black ink my love may still shine bright.""" 50 | 51 | p=Poem(poemtxt) 52 | return p.rhymed 53 | 54 | 55 | 56 | 57 | class Poem(object): 58 | def __init__(self,txt=None,id=None,title=None,fn=None,fn_encoding='utf-8',meter=METER): 59 | if fn and not txt: 60 | if os.path.exists(fn): 61 | with codecs.open(fn,encoding=fn_encoding) as f: 62 | txt=f.read() 63 | 64 | if not txt: raise ValueError("Neither a txt string object was passed nor a working filename through fn=") 65 | self.id=hash(txt) if not id else id 66 | self.meter=meter 67 | 68 | 69 | txt=txt.strip() 70 | txt=txt.replace('\r\n','\n').replace('\r','\n') 71 | while '\n\n\n' in txt: txt=txt.replace('\n\n\n','\n\n') 72 | 73 | ## 74 | # Unicode tricks 75 | txt=txt.replace('è','-e') 76 | ## 77 | 78 | self.title=title if title else txt.split('\n')[0].strip() 79 | self.txt=txt 80 | 81 | lined={} 82 | linenum=0 83 | stanza_lens=[] 84 | for stanza_i,stanza in enumerate(txt.split('\n\n')): 85 | stanza=stanza.strip() 86 | num_line_in_stanza=0 87 | 88 | for line_i,line in enumerate(stanza.split('\n')): 89 | line=line.strip() 90 | if not line: continue 91 | num_line_in_stanza+=1 92 | linenum+=1 93 | stanzanum=stanza_i+1 94 | lineid=(linenum, stanzanum) 95 | linetext=line 96 | linetext=linetext.replace('& ','and ') 97 | linetext=linetext.replace('—',' ') 98 | linetext=linetext.replace('&ebar;','e') 99 | lined[lineid]=linetext 100 | 101 | stanza_lens+=[num_line_in_stanza] 102 | 103 | self._stanza_length=stanza_lens[0] if len(set(stanza_lens))==1 else None 104 | 105 | self.lined=lined 106 | self.numLines=len(self.lined) 107 | self.genn=True 108 | 109 | @property 110 | def lines(self): 111 | return [v for k,v in sorted(self.lined.items())] 112 | 113 | 114 | @property 115 | def stanzas(self): 116 | s2i={} 117 | for li in sorted(self.lined.keys()): 118 | s=tuple(li[1:]) 119 | if not s in s2i: s2i[s]=[] 120 | s2i[s]+=[li] 121 | return [l for s,l in sorted(s2i.items())] 122 | 123 | @property 124 | def stanzas_prosodic(self): 125 | s2i={} 126 | for li in sorted(self.prosodic.keys()): 127 | if not self.prosodic[li].words(): continue 128 | s=tuple(li[1:]) 129 | if not s in s2i: s2i[s]=[] 130 | s2i[s]+=[li] 131 | return [l for s,l in sorted(s2i.items())] 132 | 133 | 134 | 135 | @property 136 | def stanza_length(self): 137 | """ 138 | Returns invariable stanza length as an integer. 139 | If variable stanza lengths, returns None. 140 | """ 141 | if hasattr(self,'_stanza_length'): return self._stanza_length 142 | stanza_lens = [len(st) for st in self.stanzas] 143 | lenfreq=Counter(stanza_lens) 144 | mostcommonlen=[_k for _k in sorted(lenfreq,key=lambda __k: -lenfreq[__k])][0] 145 | 146 | if not stanza_lens or len(stanza_lens)==1: 147 | self._stanza_length=None # return None if variable stanza lengths 148 | else: 149 | self._stanza_length=mostcommonlen 150 | return self._stanza_length 151 | 152 | @property 153 | def firstline(self): 154 | return self.lines[0] 155 | 156 | 157 | ## METER 158 | 159 | @property 160 | def hood_dist(self): 161 | ## HOOD DIST 162 | x=.175 163 | y=.5 164 | 165 | def distance(p0, p1): 166 | import math 167 | return math.sqrt((p0[0] - p1[0])**2 + (p0[1] - p1[1])**2) 168 | 169 | try: 170 | y2=float(self.meterd['meter_perc_lines_fourthpos_s']) 171 | x2=float(self.meterd['meter_mpos_ww']) 172 | except (ValueError,KeyError) as e: 173 | return None 174 | dist=distance((x,y),(x2,y2)) 175 | return dist 176 | 177 | @property 178 | def total_viols(self): 179 | return self.statd['meter_constraint_TOTAL'] 180 | 181 | @property 182 | def meterd(self): 183 | """ 184 | Return dictionary with metrical annotations. 185 | """ 186 | datad={} 187 | all_mstrs=[] 188 | ws_ends=[] 189 | ws_starts=[] 190 | ws_fourths=[] 191 | 192 | ## COLLECT STATS ON metrically weak/strong in various positions 193 | viold={} 194 | for i,line in sorted(self.prosodic.items()): 195 | bp=line.bestParses() 196 | if not bp: continue 197 | mstrs=[] 198 | pure_parse='' 199 | for parse in bp: 200 | for mpos in parse.positions: 201 | for ck,cv in mpos.constraintScores.items(): 202 | ck=ck.name 203 | if not ck in viold: viold[ck]=[] 204 | viold[ck]+=[0 if not cv else 1] 205 | mstr=''.join([mpos.meterVal for n in range(len(mpos.slots))]) 206 | pure_parse+=mstr 207 | mstrs+=[mstr] 208 | line_mstr='|'.join(mstrs) 209 | line_parse="||".join(str(p) for p in bp) 210 | ws_starts += [pure_parse[0]] 211 | ws_ends += [pure_parse[-1]] 212 | ws_fourths += [pure_parse[3:4]] 213 | all_mstrs+=mstrs 214 | 215 | 216 | mstr_freqs=toks2freq(all_mstrs,tfy=True) 217 | for k,v in mstr_freqs.items(): datad['mpos_'+k]=v 218 | for k,v in toks2freq(ws_ends,tfy=True).items(): datad['perc_lines_ending_'+k]=v 219 | for k,v in toks2freq(ws_starts,tfy=True).items(): datad['perc_lines_starting_'+k]=v 220 | for k,v in toks2freq(ws_fourths,tfy=True).items(): datad['perc_lines_fourthpos_'+k]=v 221 | 222 | 223 | ## DECIDE WHETHER TERNARY / BINARY FOOT 224 | d=datad 225 | d['type_foot']='ternary' if d.get('mpos_ww',0)>0.175 else 'binary' 226 | 227 | ## DECIDE WHETHER INITIAL / FINAL-HEADED 228 | if d['type_foot']=='ternary': 229 | d['type_head']='initial' if d.get('perc_lines_fourthpos_s',0)>0.5 else 'final' 230 | else: 231 | d['type_head']='initial' if d.get('perc_lines_fourthpos_s',0)<0.5 else 'final' 232 | 233 | ## PUT 2 TOGETHER TO DECIDE anapestic / dactylic / trochaic / iambic 234 | x=(d['type_foot'],d['type_head']) 235 | if x==('ternary','final'): 236 | d['type_scheme']='anapestic' 237 | elif x==('ternary','initial'): 238 | d['type_scheme']='dactylic' 239 | elif x==('binary','initial'): 240 | d['type_scheme']='trochaic' 241 | else: 242 | d['type_scheme']='iambic' 243 | 244 | 245 | ### METRICAL AMBIGUITY 246 | ambig = [] 247 | avg_linelength=[] 248 | avg_parselength=[] 249 | for i,line in sorted(self.prosodic.items()): 250 | ap=line.allParses() 251 | line_numparses=[] 252 | line_parselen=0 253 | if not ap: continue 254 | for parselist in ap: 255 | numparses=len(parselist) 256 | parselen=len(parselist[0].str_meter()) 257 | avg_parselength+=[parselen] 258 | line_parselen+=parselen 259 | line_numparses+=[numparses] 260 | 261 | import operator 262 | avg_linelength+=[line_parselen] 263 | ambigx=reduce(operator.mul, line_numparses, 1) 264 | ambig+=[ambigx] 265 | d['ambiguity']=np.mean(ambig) if ambig else '' 266 | d['length_avg_line']=np.mean(avg_linelength) if avg_linelength else '' 267 | d['length_avg_parse']=np.mean(avg_parselength) if avg_parselength else '' 268 | 269 | 270 | ## TOTAL METRICAL VIOLATIONS 271 | sumviol=0 272 | for ck,cv in viold.items(): 273 | avg=np.mean(cv) if cv else '' 274 | d['constraint_'+ck.replace('.','_')]=avg 275 | sumviol+=avg 276 | 277 | d['constraint_TOTAL']=sumviol 278 | return datad 279 | 280 | 281 | def __str__(self): 282 | """ 283 | Return a string version of poem: its ID 284 | """ 285 | return self.id 286 | 287 | def limit(self,N,preserve_stanza=True): 288 | """ Limit number of lines to first N """ 289 | newd={} 290 | if self.stanza_length: 291 | lineids=[] 292 | for lineids_in_stanza in self.stanzas: 293 | lineids+=lineids_in_stanza 294 | if len(lineids)>=N: 295 | break 296 | for li in lineids: 297 | newd[li]=self.lined[li] 298 | else: 299 | for i,(k,v) in enumerate(sorted(self.lined.items())): 300 | if i>=N: break 301 | newd[k]=v 302 | self.lined=newd 303 | 304 | @property 305 | def indices(self): 306 | return sorted(self.lined.keys()) 307 | 308 | 309 | @property 310 | def meterd(self): 311 | datad={} 312 | all_mstrs=[] 313 | ws_ends=[] 314 | ws_starts=[] 315 | ws_fourths=[] 316 | 317 | viold={} 318 | for i,line in sorted(self.prosodic.items()): 319 | bp=line.bestParses() 320 | if not bp: continue 321 | mstrs=[] 322 | pure_parse='' 323 | for parse in bp: 324 | for mpos in parse.positions: 325 | for ck,cv in mpos.constraintScores.items(): 326 | ck=ck.name 327 | if not ck in viold: viold[ck]=[] 328 | viold[ck]+=[0 if not cv else 1] 329 | 330 | mstr=''.join([mpos.meterVal for n in range(len(mpos.slots))]) 331 | pure_parse+=mstr 332 | mstrs+=[mstr] 333 | line_mstr='|'.join(mstrs) 334 | line_parse="||".join(str(p) for p in bp) 335 | ws_starts += [pure_parse[0]] 336 | ws_ends += [pure_parse[-1]] 337 | ws_fourths += [pure_parse[3:4]] 338 | 339 | all_mstrs+=mstrs 340 | 341 | mstr_freqs=toks2freq(all_mstrs,tfy=True) 342 | for k,v in mstr_freqs.items(): datad['mpos_'+k]=v 343 | 344 | for k,v in toks2freq(ws_ends,tfy=True).items(): datad['perc_lines_ending_'+k]=v 345 | for k,v in toks2freq(ws_starts,tfy=True).items(): datad['perc_lines_starting_'+k]=v 346 | for k,v in toks2freq(ws_fourths,tfy=True).items(): datad['perc_lines_fourthpos_'+k]=v 347 | 348 | d=datad 349 | #d['type_foot']='ternary' if d.get('mpos_ww',0)>0.15 and d.get('mpos_w',0)<.35 else 'binary' 350 | d['type_foot']='ternary' if d.get('mpos_ww',0)>0.175 else 'binary' 351 | 352 | if d['type_foot']=='ternary': 353 | d['type_head']='initial' if d.get('perc_lines_fourthpos_s',0)>0.5 else 'final' 354 | else: 355 | d['type_head']='initial' if d.get('perc_lines_fourthpos_s',0)<0.5 else 'final' 356 | 357 | 358 | x=(d['type_foot'],d['type_head']) 359 | if x==('ternary','final'): 360 | d['type_scheme']='anapestic' 361 | elif x==('ternary','initial'): 362 | d['type_scheme']='dactylic' 363 | elif x==('binary','initial'): 364 | d['type_scheme']='trochaic' 365 | else: 366 | d['type_scheme']='iambic' 367 | 368 | 369 | ### AMBIGUITY 370 | ambig = [] 371 | avg_linelength=[] 372 | avg_parselength=[] 373 | for i,line in sorted(self.prosodic.items()): 374 | ap=line.allParses() 375 | line_numparses=[] 376 | line_parselen=0 377 | if not ap: continue 378 | for parselist in ap: 379 | numparses=len(parselist) 380 | parselen=len(parselist[0].str_meter()) 381 | avg_parselength+=[parselen] 382 | line_parselen+=parselen 383 | line_numparses+=[numparses] 384 | 385 | import operator 386 | avg_linelength+=[line_parselen] 387 | ambigx=reduce(operator.mul, line_numparses, 1) 388 | ambig+=[ambigx] 389 | d['ambiguity']=np.mean(ambig) if ambig else '' 390 | d['length_avg_line']=np.mean(avg_linelength) if ambig else '' 391 | d['length_avg_parse']=np.mean(avg_parselength) if ambig else '' 392 | 393 | 394 | ## VIOLATIONS 395 | sumviol=0 396 | for ck,cv in viold.items(): 397 | avg=np.mean(cv) if cv else '' 398 | d['constraint_'+ck.replace('.','_')]=avg 399 | sumviol+=avg 400 | 401 | d['constraint_TOTAL']=sumviol 402 | return datad 403 | 404 | #@property 405 | #def meter(self): 406 | # return self.meterd['type_scheme'] 407 | 408 | @property 409 | def parsed(self): 410 | if hasattr(self,'_parsed'): return self._parsed 411 | meterd=self.meterd 412 | 413 | """ 414 | Tie-breaker logic: 415 | anapestic --> maximize ww, start with w 416 | trochaic --> minimize ww, start with s 417 | dactylic --> maximize ww, start with s 418 | iambic --> minimize ww, start with w 419 | """ 420 | self._parsed=parsed={} 421 | def sort_ties(ties, meterd): 422 | ww_factor=-1 if meterd['type_foot']=='ternary' else 1 423 | wstart_factor=1 if meterd['type_head']=='initial' else -1 424 | def _sort_tuple(P): 425 | num_ww=sum([int(mpos.mstr=='ww') for mpos in P.positions]) 426 | zero_means_starts_with_w=int(P.positions[0].mstr[0]!='w') 427 | return (num_ww,zero_means_starts_with_w) 428 | 429 | ties.sort(key=lambda P: (ww_factor*_sort_tuple(P)[0], wstart_factor*_sort_tuple(P)[1])) 430 | 431 | for i,line in sorted(self.prosodic.items()): 432 | ap=line.allParses() 433 | if not ap: continue 434 | parsed[i]=lineparses=[] 435 | for parselist in ap: # first level of list is punctuation breaks 436 | ## here is where we decide among parses based on which maximizes metrical scheme 437 | ## only if there are ties 438 | parselist.sort(key=lambda P: P.totalScore) 439 | lowestScore=parselist[0].totalScore 440 | ties=[P for P in parselist if P.totalScore==lowestScore] 441 | if len(ties)>1: sort_ties(ties,meterd) 442 | lineparses+=[ties[0]] 443 | 444 | return parsed 445 | 446 | def parse(self,lim=None,meter=None): 447 | if not meter: meter=self.meter 448 | if hasattr(self,'_parsed') and self._parsed: 449 | return 450 | for _i,(li,line) in enumerate(self.prosodic.items()): 451 | if lim and _i>=lim: break 452 | line.parse(meter=meter) 453 | self._parsed=True 454 | 455 | def get_schemed(self,beat=True): 456 | scheme,sdiff=self.get_scheme(beat=beat,return_diff=True) 457 | dx={} 458 | dx['scheme']=scheme 459 | dx['scheme_type']=self.schemetype(scheme) 460 | dx['scheme_repr']=self.scheme_repr(dx['scheme_type'], dx['scheme'],beat=beat) 461 | dx['scheme_length']=len(scheme) 462 | dx['scheme_diff']=sdiff 463 | return dx 464 | 465 | @property 466 | def schemed(self): 467 | return self.get_schemed(beat=True) 468 | 469 | @property 470 | def schemed_syll(self): 471 | return self.get_schemed(beat=False) 472 | 473 | @property 474 | def schemed_beat(self): 475 | return self.get_schemed(beat=True) 476 | 477 | @property 478 | def lineld(self): 479 | old=[] 480 | self.parse() 481 | self.rhyme_net() 482 | 483 | for lineid in sorted(self.lined): 484 | odx={ 485 | 'lineid':lineid, 486 | '#line':lineid[0], 487 | '#stanza':lineid[1], 488 | '#line_in_stanza':self.linenums_bystanza[lineid], 489 | 'lineid2':'%s.%s' % (lineid[1],self.linenums_bystanza[lineid]), 490 | 491 | 'line':self.lined[lineid], 492 | 'parse':self.prosodic[lineid].parse_str(viols=True), 493 | 'num_parses':self.numparses[lineid], 494 | 495 | 'num_sylls':self.linelengths[lineid], 496 | 'num_feet':self.linelengths_bybeat[lineid], 497 | 498 | 'rhyme':self.rhymes[lineid], 499 | } 500 | old+=[odx] 501 | return old 502 | 503 | def show(self): 504 | """Show annotations 505 | """ 506 | ostr=[] 507 | self.parse() 508 | self.rhyme_net() 509 | stanzanow=None 510 | 511 | lineid2linestr=dict((lineid,line.parse_str(viols=False)) for lineid,line in sorted(self.prosodic.items())) 512 | maxlinelen=max(len(l) for l in lineid2linestr.values()) 513 | linelen=maxlinelen+5 514 | 515 | for lineid,line in sorted(self.prosodic.items()): 516 | rimestr=self.rhymes[lineid] 517 | linestr=line.parse_str(viols=False) 518 | linenum=self.linenums_bystanza[lineid] 519 | stanzanum=lineid[1] 520 | beatlen=self.linelengths_bybeat[lineid] 521 | sylllen=self.linelengths[lineid] 522 | if stanzanow!=stanzanum: 523 | if ostr: ostr+=[''] 524 | stanzanow=stanzanum 525 | 526 | oline='({stanza}.{linenum}) {line:<{linelen}} [{rime}] [{beat}/{syll}]'.format( 527 | linelen=linelen, 528 | rime=rimestr, 529 | line=linestr, 530 | stanza=stanzanum, 531 | linenum=linenum, 532 | beat=beatlen, 533 | syll=sylllen) 534 | ostr+=[oline] 535 | return '\n'.join(ostr) 536 | 537 | def summary(self,header=['lineid2', 'parse', 'rhyme', 'num_feet', 'num_sylls','num_parses']): 538 | colnames={ 539 | 'num_feet':'#feet', 540 | 'num_sylls':'#syll', 541 | 'lineid':'(#ln,#st)', 542 | 'lineid2':'(#s,#l)', 543 | 'rhyme':'rhyme', 544 | 'parse':'parse', 545 | 'num_parses':'#parse' 546 | } 547 | 548 | from tabulate import tabulate 549 | data=[] 550 | stanzanow=None 551 | for row in self.lineld: 552 | if stanzanow is None: stanzanow=row['#stanza'] 553 | if stanzanow!=row['#stanza']: 554 | data+=[''] 555 | stanzanow=row['#stanza'] 556 | 557 | datarow=[row[h] for h in header] 558 | data+=[datarow] 559 | cols=[colnames.get(h,h) for h in header] 560 | table=tabulate(data,headers=cols) 561 | 562 | schemestr1='meter: {meter}\nfeet: {feet}\nsyllables: {syll}\nrhyme: {rhymename} {rhymescheme}'.format( 563 | meter=self.statd['meter_type_scheme'].title(), 564 | feet=self.statd['beat_scheme_repr'], 565 | syll=self.statd['syll_scheme_repr'], 566 | rhymename=self.statd['rhyme_scheme_name'], 567 | rhymescheme='(%s)' % self.statd['rhyme_scheme_form'] if self.statd['rhyme_scheme_form'] else '', 568 | ) 569 | 570 | ostr=table+'\n\n\nestimated schema\n----------\n'+schemestr1 571 | print(ostr) 572 | 573 | @property 574 | def statd(self): 575 | if not hasattr(self,'_statd') or not self._statd: 576 | dx=self._statd={} 577 | 578 | ## Scheme 579 | for x,y in [('beat',True), ('syll',False)]: 580 | sd=self.get_schemed(beat=y) 581 | for sk,sv in sd.items(): 582 | dx[x+'_'+sk]=sv 583 | 584 | ## Length 585 | dx['num_lines']=self.numLines 586 | 587 | ## Meter 588 | for k,v in self.meterd.items(): dx['meter_'+k]=v 589 | 590 | ## Rhyme 591 | for k,v in self.rhymed.items(): 592 | if k=='rhyme_schemes' and v: v=v[-5:] 593 | dx[k]=v 594 | return self._statd 595 | 596 | def schemetype(self,scheme): 597 | if len(scheme)==1: return 'Invariable' 598 | if len(scheme)==2: return 'Alternating' 599 | return 'Complex' 600 | 601 | def scheme_repr(self,schemetype,scheme,beat=False): 602 | #if schemetype=='Complex': return 'Complex' 603 | #prefix='Alt_' if schemetype=='Alternating' else 'Inv_' 604 | if beat and schemetype!='Complex': scheme=[BEATNAMES.get(sx,sx) for sx in scheme] 605 | if schemetype=='Invariable': 606 | return scheme[0] 607 | # elif schemetype=='Complex': 608 | # 609 | # return 610 | schemedetails='('+'-'.join(str(sx) for sx in scheme)+')' 611 | return schemetype+' '+schemedetails.lower() 612 | 613 | 614 | def get_scheme(self,beat=True,return_diff=False,encourage_invariable=True): 615 | stanza_length=self.stanza_length 616 | if beat: 617 | lengths=[v for k,v in sorted(self.linelengths_bybeat.items())] 618 | else: 619 | lengths=[v for k,v in sorted(self.linelengths.items())] 620 | 621 | num_lines=len(lengths) 622 | min_length,max_length=min(lengths),max(lengths) 623 | abs_diff_in_lengths=abs(min_length-max_length) 624 | 625 | if beat: 626 | isVariable=True if abs_diff_in_lengths>2 else False 627 | else: 628 | isVariable=True if abs_diff_in_lengths>4 else False 629 | 630 | 631 | min_seq_length=1 # if not isVariable else 2 632 | try_lim=10 633 | max_seq_length=stanza_length if stanza_length else 12 634 | 635 | 636 | def measure_diff(l1,l2,beat=False): 637 | min_l=min([len(l1),len(l2)]) 638 | l1=l1[:min_l] 639 | l2=l2[:min_l] 640 | """ 641 | print len(l1),len(l2) 642 | print ' '.join(unicode(x) for x in l1) 643 | print ' '.join(unicode(x) for x in l2) 644 | print ' '.join(unicode(abs(x1-x2)) for x1,x2 in zip(l1,l2)) 645 | #""" 646 | diff=0 647 | for x1,x2 in zip(l1,l2): 648 | diff+=abs(x1-x2) 649 | return diff if not beat else diff*2 650 | 651 | combo2diff={} 652 | best_combo=None 653 | best_diff=None 654 | 655 | best_combos=[] 656 | best_lim=100 657 | poem_length=self.numLines 658 | for seq_length in range(min_seq_length,int(max_seq_length)+1): 659 | if seq_length>poem_length: break 660 | if stanza_length and stanza_length % seq_length: continue 661 | if poem_length and poem_length % seq_length: continue 662 | if seq_length>try_lim: break 663 | num_reps=num_lines/seq_length 664 | 665 | average_length_per_pos=dict((s_i,[]) for s_i in range(seq_length)) 666 | for l_i,l_x in enumerate(lengths): 667 | average_length_per_pos[l_i % seq_length] += [l_x] 668 | for k,v in average_length_per_pos.items(): 669 | median=np.median(v) if len(v)>1 else v[0] 670 | average_length_per_pos[k]=int(median) 671 | 672 | SOME_possibilities = [[rx for rx in range(average_length_per_pos[x_i]-1,average_length_per_pos[x_i]+2)] for x_i,x in enumerate(range(seq_length))] 673 | combo_possibilities = product(*SOME_possibilities) 674 | for combo in combo_possibilities: 675 | if len(combo)>1 and len(set(combo))==1: continue 676 | model_lengths=[] 677 | while len(model_lengths)<=len(lengths): 678 | for cx in combo: model_lengths+=[cx] 679 | model_lengths=model_lengths[:len(lengths)] 680 | 681 | diff_in_lengths=abs(len(lengths) - len(model_lengths)) 682 | diff=measure_diff(lengths, model_lengths, beat=beat) 683 | if not beat: 684 | diff+=sum([5 if seq_x%2 else 0 for seq_x in combo]) 685 | if encourage_invariable: 686 | diff+=1 if len(set(combo))>1 else 0 687 | 688 | diff=diff 689 | 690 | 691 | if len(best_combos) np.mean(best_combo) if best_combo else 0: 704 | best_diff=diff 705 | best_combo=combo 706 | 707 | 708 | self._scheme=best_combo 709 | self._scheme_diff=best_diff 710 | if return_diff: 711 | return best_combo,best_diff 712 | 713 | return best_combo 714 | 715 | @property 716 | def scheme(self): 717 | return self.get_scheme(beat=True) 718 | 719 | @property 720 | def prosodic(self): 721 | if not hasattr(self,'_prosodic'): 722 | import prosodic as p 723 | p.config['print_to_screen']=0 724 | p.config.update(PROSODIC_CONFIG) 725 | self._prosodic=pd={} 726 | numlines=len(self.lined) 727 | for _i,(i,line) in enumerate(sorted(self.lined.items())): 728 | line=line.replace('-',' ').replace("'","").strip() 729 | pd[i]=p.Text(line,meter=self.meter) 730 | return self._prosodic 731 | 732 | @property 733 | def linelengths(self): 734 | if not hasattr(self,'_linelengths'): 735 | self._linelengths=dx={} 736 | for lineid,line in sorted(self.prosodic.items()): 737 | dx[lineid]=len(line.syllables()) 738 | return self._linelengths 739 | 740 | @property 741 | def linelengths_bybeat(self): 742 | if not hasattr(self,'_linelengths_bybeat'): 743 | self.parse() 744 | self._linelengths_bybeat=dx={} 745 | for lineid,line in sorted(self.prosodic.items()): 746 | dx[lineid]=num_beats(line) 747 | return self._linelengths_bybeat 748 | 749 | @property 750 | def linelength(self): # median line length 751 | if not hasattr(self,'_linelength'): 752 | self._linelength=np.median(list(self.linelengths.values())) 753 | return self._linelength 754 | 755 | 756 | ## Meter 757 | 758 | @property 759 | def numparses(self): 760 | if not hasattr(self,'_numparses'): 761 | self._numparses=npd={} 762 | for lineid in self.prosodic: 763 | line=self.prosodic[lineid] 764 | npd[lineid]=line.ambiguity #@IMPORTANT look at this code in prosodic/lib/Text 765 | return self._numparses 766 | 767 | 768 | 769 | 770 | 771 | @property 772 | def linenums(self): 773 | return dict((lineid,lineid[0]) for lineid in self.lined) 774 | 775 | @property 776 | def stanzanums(self): 777 | return dict((lineid,lineid[1]) for lineid in self.lined) 778 | 779 | 780 | @property 781 | def linenums_bystanza(self): 782 | """ 783 | Within stanza numberings 784 | """ 785 | if not hasattr(self,'_linenums'): 786 | rd=self._linenums={} 787 | stanzanow=None 788 | linenum=0 789 | for lineid,line in sorted(self.lined.items()): 790 | if lineid[1]!=stanzanow: 791 | stanzanow=lineid[1] 792 | linenum=0 793 | linenum+=1 794 | rd[lineid]=linenum 795 | return self._linenums 796 | 797 | ## RHYME 798 | @property 799 | def rhymes(self): 800 | if not hasattr(self,'_rhymes'): 801 | rd=self._rhymes={} 802 | for lineid,line in sorted(self.lined.items()): 803 | try: 804 | rimestr=self.rhyme_ids[lineid[0]-1] 805 | except IndexError: 806 | rimestr='?' 807 | rd[lineid]=rimestr 808 | return self._rhymes 809 | 810 | @property 811 | def rhyme_ids(self): 812 | if not hasattr(self,'_rhyme_ids'): 813 | self.rhyme_net() 814 | self._rhyme_ids=nums2scheme(self.rime_ids) 815 | return self._rhyme_ids 816 | 817 | @property 818 | def rhymed(self): 819 | if hasattr(self,'_rhymed'): return self._rhymed 820 | self._rhymed=odx={} 821 | odx['rhyme_scheme']='' 822 | odx['rhyme_scheme_name']='' 823 | odx['rhyme_scheme_form']='' 824 | odx['rhyme_scheme_accuracy']='' 825 | self.rhyme_net() 826 | for k,v in self.discover_rhyme_scheme(self.rime_ids).items(): odx[k]=v 827 | return odx 828 | 829 | 830 | def rhyme_net(self,toprint=False,force=False): 831 | if not force and hasattr(self,'rhymeG') and self.rhymeG: return self.rhymeG 832 | W=4 833 | import networkx as nx 834 | G=nx.DiGraph() 835 | tried=set() 836 | old=[] 837 | for stnum,stanza in enumerate(self.stanzas_prosodic): 838 | for i,lineid1 in enumerate(stanza): 839 | prev_lines=stanza[i-W if i-W > 0 else 0:i] 840 | next_lines=stanza[i+1:i+1+W] 841 | for lineid2 in prev_lines + next_lines: 842 | line1=self.prosodic[lineid1] 843 | line2=self.prosodic[lineid2] 844 | node1=str(lineid1[0]).zfill(6)+': '+self.lined[lineid1] 845 | node2=str(lineid2[0]).zfill(6)+': '+self.lined[lineid2] 846 | dist=line1.rime_distance(line2) 847 | 848 | odx={'node1':node1,'node2':node2, 'dist':dist, 'lineid1':lineid1, 'lineid2':lineid2} 849 | old+=[odx] 850 | G.add_edge(node1,node2,weight=dist) 851 | 852 | ## ASSIGN RIME IDS 853 | self.rime_ids=ris=[] 854 | node2num={} 855 | nnum=1 856 | overlaps=set() 857 | weights=[] 858 | toprintstr=[] 859 | for node in sorted(G.nodes()): 860 | #print "NODE",node 861 | edged=G.edge if hasattr(G,'edge') else G.adj # diff versions of networkx? 862 | neighbors=sorted(edged[node].keys(),key=lambda n2: G[node][n2]['weight']) 863 | #neighbors=[n for n in neighbors if n>node] 864 | closest_neighbor=neighbors[0] 865 | #print 'closest neighbor:',closest_neighbor 866 | #print 867 | closest_weight=G[node][closest_neighbor]['weight'] 868 | weights+=[closest_weight] 869 | if closest_weight > MAX_RHYME_DIST: 870 | #nodenum=nnum 871 | nodenum=0 872 | node2num[node]=nodenum 873 | nnum+=1 874 | if node in node2num: 875 | nodenum=node2num[node] 876 | elif closest_neighbor in node2num: 877 | nodenum=node2num[closest_neighbor] 878 | node2num[node]=nodenum 879 | #if n in node2num: 880 | # nodenum=node2num[n] 881 | # break 882 | else: 883 | node2num[node]=nnum 884 | node2num[closest_neighbor]=nnum 885 | nodenum=nnum 886 | nnum+=1 887 | 888 | if toprint: toprintstr+=[node+'\t'+str(nodenum)] 889 | G.nodes[node]['rime_id']=nodenum 890 | ris+=[nodenum] 891 | 892 | self.rhyme_scheme='' 893 | self.rhyme_scheme_accuracy='' 894 | self.rhyme_weight_avg=np.mean(weights) if weights else '' 895 | 896 | self.rhymeG=G 897 | if toprint: 898 | print() 899 | print('\n'.join(toprintstr)) 900 | print() 901 | 902 | # @NEW 903 | #self.rime_ids=transpose(self.rime_ids) 904 | return G 905 | 906 | 907 | def discover_rhyme_scheme(self,rime_ids): 908 | global RHYME_SCHEMES 909 | if not RHYME_SCHEMES: 910 | RHYME_SCHEMES=[d for d in read_tsv(PATH_RHYME_SCHEMES)] 911 | 912 | odx={'rhyme_scheme':None, 'rhyme_scheme_accuracy':None, 'rhyme_schemes':None} 913 | if not rime_ids: return odx 914 | 915 | def translate_slice(slice): 916 | unique_numbers=set(slice) 917 | unique_numbers_ordered=sorted(unique_numbers) 918 | for i,number in enumerate(slice): 919 | if number==0: continue 920 | slice[i] = unique_numbers_ordered.index(number) + 1 921 | return slice 922 | 923 | def scheme2edges(scheme): 924 | id2pos={} 925 | for i,x in enumerate(scheme): 926 | # x is a rhyme id, i is the position in the scheme 927 | if x==0: continue 928 | if not x in id2pos: id2pos[x]=[] 929 | id2pos[x]+=[i] 930 | 931 | rhymes=[] 932 | for x in id2pos: 933 | if len(id2pos[x])>1: 934 | for a,b in product(id2pos[x], id2pos[x]): 935 | if a>=b: continue 936 | rhymes+=[(a,b)] 937 | return rhymes 938 | 939 | def test_edges(scheme_exp,scheme_obs): 940 | edges_exp=scheme2edges(scheme_exp) 941 | edges_obs=scheme2edges(scheme_obs) 942 | set_edges_exp = set(edges_exp) 943 | set_edges_obs = set(edges_obs) 944 | 945 | logging.debug(('Expecting these edges:', edges_exp)) 946 | logging.debug(('Found these edges:', edges_obs)) 947 | logging.debug(('These edges unexpectedly present:',sorted(set_edges_obs-set_edges_exp))) 948 | logging.debug(('These edges unexpectedly absent:',sorted(set_edges_exp-set_edges_obs))) 949 | 950 | # @NEW 951 | #return np.mean([int(x!=y) for x,y in zip(scheme_exp,scheme_obs)]) 952 | divisor=float(len(set_edges_exp | set_edges_obs)) 953 | jaccard = len(set_edges_exp & set_edges_obs) / divisor if divisor else 0 954 | return jaccard 955 | 956 | def test_scheme(scheme): 957 | logging.debug(("scheme:",scheme)) 958 | scheme_nums=scheme2nums(scheme) 959 | slices=slicex(rime_ids,slice_length=len(scheme_nums),runts=True) 960 | matches=[] 961 | 962 | logging.debug((">> RIME IDS:",rime_ids)) 963 | did_not_divide=0 964 | for si,slice in enumerate(slices): 965 | 966 | tslice=translate_slice(slice) 967 | #match = int(tslice == scheme_nums) 968 | totest=scheme_nums[:len(tslice)] 969 | match = test_edges(totest, tslice) 970 | #match = test_edges(scheme_nums, tslice) 971 | 972 | if len(scheme_nums) != len(tslice): 973 | did_not_divide+=1 974 | logging.debug((">>",si,"slice, looking for:",scheme_nums,"and found:",tslice)) 975 | logging.debug((">> MATCH:", match)) 976 | logging.debug('') 977 | matches+=[match] 978 | # translate down 979 | 980 | #print matches 981 | match_score=(np.mean(matches) if matches else 0) - did_not_divide 982 | return match_score 983 | 984 | scheme_scores={} 985 | 986 | 987 | 988 | for schemed in RHYME_SCHEMES: 989 | #if not 'shakespeare' in schemed['form']: continue 990 | logging.debug(('>> TESTING SCHEME:',schemed['Form'])) 991 | scheme=schemed['Scheme'] 992 | scheme_score=test_scheme(scheme) 993 | #if scheme_score: 994 | scheme_scores[(schemed['Form'],scheme)]=scheme_score 995 | 996 | odx['rhyme_schemes']=sorted(scheme_scores.items(),key=lambda lt: -lt[1])[:5] 997 | #for scheme,scheme_score in sorted(scheme_scores.items(),key=lambda lt: (lt[1],-len(lt[0]))): 998 | # @NEW jaccard 999 | for scheme,scheme_score in sorted(scheme_scores.items(),key=lambda lt: (-lt[1],-len(lt[0]))): 1000 | odx['rhyme_scheme']=scheme 1001 | odx['rhyme_scheme_name']=scheme[0] 1002 | odx['rhyme_scheme_form']=scheme[1] 1003 | odx['rhyme_scheme_accuracy']=scheme_score 1004 | break 1005 | 1006 | if not odx['rhyme_scheme']: odx['rhyme_scheme']='Unknown' 1007 | return odx 1008 | 1009 | @property 1010 | def isSonnet(self): 1011 | # @TODO 1012 | if len(self.lined)!=14: return False 1013 | if not int(self.linelength) in [9,10,11]: return False 1014 | if not 'sonnet' in self.rhymed['rhyme_scheme'][0].lower(): return False 1015 | return True 1016 | 1017 | @property 1018 | def isShakespeareanSonnet(self): 1019 | # @TODO 1020 | if len(self.lined)!=14: return False 1021 | if not int(self.linelength) in [9,10,11]: return False 1022 | if not 'sonnet' in self.rhymed['rhyme_scheme'][0].lower(): return False 1023 | if not 'shakespeare' in self.rhymed['rhyme_scheme'][0].lower(): return False 1024 | #if self.rime_ids != [2, 1, 2, 1, 3, 4, 3, 4, 5, 6, 5, 6, 7, 7]: return False 1025 | return True 1026 | 1027 | 1028 | def num_beats(line): 1029 | return len([mpos for mpos in line.bestParses()[0].positions if mpos.meterVal=='s']) 1030 | 1031 | 1032 | 1033 | def transpose(slice): 1034 | unique_numbers=set(slice) 1035 | unique_numbers_ordered=sorted(unique_numbers) 1036 | for i,number in enumerate(slice): 1037 | if number==0: continue 1038 | slice[i] = unique_numbers_ordered.index(number) + 1 1039 | return slice 1040 | 1041 | def scheme2nums(scheme): 1042 | scheme=scheme.replace(' ','') 1043 | scheme_length=len(scheme) 1044 | alphabet='abcdefghijklmnopqrstuvwxyz' 1045 | scheme_nums=[alphabet.index(letter)+1 if scheme.count(letter)>1 else 0 for letter in scheme] 1046 | return scheme_nums 1047 | 1048 | def nums2scheme(nums): 1049 | alphabet='-abcdefghijklmnopqrstuvwxyz' 1050 | return [alphabet[n] if n