Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to Author Webpage #34

Open
gserena01 opened this issue Jul 3, 2020 · 10 comments
Open

Link to Author Webpage #34

gserena01 opened this issue Jul 3, 2020 · 10 comments

Comments

@gserena01
Copy link

Gunctionality for including a link to a web page with the author's information. Webpage can be authors personal webpages or the webpage from a larger poetry database

@thundercomb
Copy link
Owner

thundercomb commented Jul 5, 2020

Hi @gserena01

Thank you for raising this feature request.

Thinking about the API design, it could potentially be part of a /info output field for a poem, with the author link being a subfield. This makes it possible to add other info subfields in future.

For example:

[
  {
    "title": "Sonnet 17: Who will believe my verse in time to come",
    "author": "William Shakespeare",
    "lines": [
      "Who will believe my verse in time to come,",
      "If it were fill'd with your most high deserts?",     
.
.
.
      "  But were some child of yours alive that time,",
      "  You should live twice,--in it, and in my rhyme."
    ],
    "linecount": "14",
    "info": {
      "author": "https://williamshakespeare.com",
    }
  }
]

Would that be useful and is it what you had in mind?

Note that the bulk of the effort will most likely be identifying suitable websites for each relevant author. Those will usually not be personal web pages in the strict sense, as the authors currently available on PoetryDB are classic authors whose works are in the public domain. So it will be more about identifying a representative website for each author. In some cases a Wikipedia page might have to suffice.

If so, would you be interested in assisting with the task of identifying such websites?

@gserena01
Copy link
Author

The info field sounds great! And yes, I would be happy to help find these websites!

@thundercomb
Copy link
Owner

That's great, thank you!

The names of all the authors are available at the following URL:

https://poetrydb.org/authors

If you find a link you like for a particular author, please note it in this thread, for example:

Emily Dickinson: https://emilydickinson.com

Anyone can submit suggestions.

Once the number of links have reached a tipping point, and the functionality has been coded, then the database can be updated.

Thanks again for the help.

@PPInfy
Copy link

PPInfy commented Oct 6, 2020

Hey why dont you make it part of #hacktoberfest

@gserena01
Copy link
Author

"Adam Lindsay Gordon" : https://mypoeticside.com/poets/adam-lindsay-gordon-poems
"Alan Seeger": https://mypoeticside.com/poets/alan-seeger-poems
"Alexander Pope": https://mypoeticside.com/poets/alexander-pope-poems
"Algernon Charles Swinburne": https://mypoeticside.com/poets/algernon-charles-swinburne-poems
"Ambrose Bierce": https://mypoeticside.com/poets/ambrose-bierce-poems
"Amy Levy": https://poets.org/poet/amy-levy
"Andrew Marvell": https://mypoeticside.com/poets/andrew-marvell-poems
"Ann Taylor": https://mypoeticside.com/poets/ann-taylor-poems
"Anne Bradstreet": https://mypoeticside.com/poets/anne-bradstreet-poems
"Anne Bronte": https://mypoeticside.com/poets/anne-bronte-poems
"Anne Killigrew": https://mypoeticside.com/poets/anne-killigrew-poems
"Anne Kingsmill Finch": https://mypoeticside.com/poets/anne-kingsmill-finch-poems
"Annie Louisa Walker": https://mypoeticside.com/poets/annie-louisa-walker-poems
"Arthur Hugh Clough": https://mypoeticside.com/poets/arthur-hugh-clough-poems
"Ben Jonson": https://mypoeticside.com/poets/ben-jonson-poems
"Charles Kingsley": https://mypoeticside.com/poets/charles-kingsley-poems
"Charles Sorley": https://mypoeticside.com/poets/charles-hamilton-sorley-poems
"Charlotte Bronte": https://mypoeticside.com/poets/charlotte-bronte-poems
"Charlotte Smith": https://mypoeticside.com/poets/charlotte-smith-poems
"Christina Rossetti": https://mypoeticside.com/poets/christina-georgina-rossetti-poems
"Christopher Marlowe": https://mypoeticside.com/poets/christopher-marlowe-poems
"Christopher Smart": https://mypoeticside.com/poets/christopher-smart-poems
"Coventry Patmore": https://mypoeticside.com/poets/coventry-patmore-poems
"Edgar Allan Poe": https://mypoeticside.com/poets/edgar-allan-poe-poems
"Edmund Spenser": https://mypoeticside.com/poets/edmund-spenser-poems
"Edward Fitzgerald": https://mypoeticside.com/poets/edward-fitzgerald-poems
"Edward Lear": https://mypoeticside.com/poets/edward-lear-poems
"Edward Taylor": https://mypoeticside.com/poets/edward-taylor-poems
"Edward Thomas": https://mypoeticside.com/poets/phillip-edward-thomas-poems
"Eliza Cook": https://mypoeticside.com/poets/eliza-cook-poems
"Elizabeth Barrett Browning": https://mypoeticside.com/poets/elizabeth-barrett-browning-poems
"Emily Bronte": https://mypoeticside.com/poets/emily-bronte-poems
"Emily Dickinson": https://mypoeticside.com/poets/emily-dickinson-poems
"Emma Lazarus": https://mypoeticside.com/poets/emma-lazarus-poems
"Ernest Dowson": https://mypoeticside.com/poets/ernest-christopher-dowson-poems
"Eugene Field": https://mypoeticside.com/poets/eugene-field-poems
"Francis Thompson": https://mypoeticside.com/poets/francis-thompson-poems
"Geoffrey Chaucer": https://mypoeticside.com/poets/geoffrey-chaucer-poems
"George Eliot": https://mypoeticside.com/poets/george-eliot-poems
"George Gordon, Lord Byron": https://mypoeticside.com/poets/lord-byron-poems
"George Herbert": https://mypoeticside.com/poets/george-herbert-poems
"George Meredith": https://mypoeticside.com/poets/george-meredith-poems
"Gerard Manley Hopkins": https://mypoeticside.com/poets/gerard-manley-hopkins-poems
"Helen Hunt Jackson": https://mypoeticside.com/poets/helen-hunt-jackson-poems
"Henry David Thoreau": https://mypoeticside.com/poets/henry-david-thoreau-poems
"Henry Vaughan": https://mypoeticside.com/poets/henry-vaughan-poems
"Henry Wadsworth Longfellow": https://mypoeticside.com/poets/henry-wadsworth-longfellow-poems
"Hugh Henry Brackenridge": https://mypoeticside.com/poets/hugh-henry-brackenridge-poems
"Isaac Watts": https://mypoeticside.com/poets/isaac-watts-poems
"James Henry Leigh Hunt": https://mypoeticside.com/poets/leigh-hunt-poems
"James Thomson": https://mypoeticside.com/poets/james-thomson-poems
"James Whitcomb Riley": https://mypoeticside.com/poets/james-whitcomb-riley-poems
"Jane Austen": https://mypoeticside.com/poets/jane-austen-poems
"Jane Taylor": https://mypoeticside.com/poets/jane-taylor-poems
"John Clare": https://mypoeticside.com/poets/john-clare-poems
"John Donne": https://mypoeticside.com/poets/john-donne-poems
"John Dryden": https://www.poetryfoundation.org/poets/john-dryden
"John Greenleaf Whittier": https://mypoeticside.com/poets/john-greenleaf-whittier-poems
"John Keats": https://mypoeticside.com/poets/john-keats-poems
"John McCrae": https://mypoeticside.com/poets/john-mccrae-poems
"John Milton": https://mypoeticside.com/poets/john-milton-poems
"John Trumbull": https://mypoeticside.com/poets/john-trumbull-poems
"John Wilmot": https://mypoeticside.com/poets/john-wilmot-poems
"Jonathan Swift": https://mypoeticside.com/poets/jonathan-swift-poems
"Joseph Warton": http://famouspoetsandpoems.com/poets/joseph_warton
"Joyce Kilmer": https://mypoeticside.com/poets/joyce-kilmer-poems
"Julia Ward Howe": https://mypoeticside.com/poets/julia-ward-howe-poems
"Jupiter Hammon": https://www.poetryfoundation.org/poets/jupiter-hammon
"Katherine Philips": https://mypoeticside.com/poets/katherine-philips-poems
"Lady Mary Chudleigh": https://mypoeticside.com/poets/mary-chudleigh-poems
"Lewis Carroll": https://mypoeticside.com/poets/lewis-carroll-poems
"Lord Alfred Tennyson": https://mypoeticside.com/poets/alfred-lord-tennyson-poems
"Louisa May Alcott": https://mypoeticside.com/poets/louisa-may-alcott-poems
"Major Henry Livingston, Jr.": https://www.poetryfoundation.org/poets/henry-livingston
"Mark Twain": https://mypoeticside.com/poets/mark-twain-poems
"Mary Elizabeth Coleridge": https://mypoeticside.com/poets/mary-elizabeth-coleridge-poems
"Matthew Arnold": https://mypoeticside.com/poets/matthew-arnold-poems
"Matthew Prior": https://mypoeticside.com/poets/matthew-prior-poems
"Michael Drayton": https://mypoeticside.com/poets/michael-drayton-poems
"Oliver Goldsmith": https://mypoeticside.com/poets/oliver-goldsmith-poems
"Oliver Wendell Holmes": https://mypoeticside.com/poets/oliver-wendell-holmes-poems
"Oscar Wilde": https://mypoeticside.com/poets/oscar-wilde-poems
"Paul Laurence Dunbar": https://mypoeticside.com/poets/paul-laurence-dunbar-poems
"Percy Bysshe Shelley": https://mypoeticside.com/poets/percy-bysshe-shelley-poems
"Philip Freneau": https://mypoeticside.com/poets/philip-morin-freneau-poems
"Phillis Wheatley": https://mypoeticside.com/poets/phillis-wheatley-poems
"Ralph Waldo Emerson": https://mypoeticside.com/poets/ralph-waldo-emerson-poems
"Richard Crashaw": https://mypoeticside.com/poets/richard-crashaw-poems
"Richard Lovelace": https://mypoeticside.com/poets/richard-lovelace-poems
"Robert Browning": https://mypoeticside.com/poets/robert-browning-poems
"Robert Burns": https://mypoeticside.com/poets/robert-burns-poems
"Robert Herrick": https://mypoeticside.com/poets/robert-herrick-poems
"Robert Louis Stevenson": https://mypoeticside.com/poets/robert-louis-stevenson-poems
"Robert Southey": https://mypoeticside.com/poets/robert-southey-poems
"Robinson": https://mypoeticside.com/poets/mary-darby-robinson-poems
"Rupert Brooke": https://mypoeticside.com/poets/rupert-brooke-poems
"Samuel Coleridge": https://mypoeticside.com/poets/samuel-taylor-coleridge-poems
"Samuel Johnson": https://mypoeticside.com/poets/samuel-johnson-poems
"Sarah Flower Adams": https://mypoeticside.com/poets/sarah-flower-adams-poems
"Sidney Lanier": https://mypoeticside.com/poets/sidney-lanier-poems
"Sir John Suckling": https://mypoeticside.com/poets/sir-john-suckling-poems
"Sir Philip Sidney": https://mypoeticside.com/poets/sir-philip-sidney-poems
"Sir Thomas Wyatt": https://mypoeticside.com/poets/sir-thomas-wyatt-poems
"Sir Walter Raleigh": https://mypoeticside.com/poets/sir-walter-raleigh-poems
"Sir Walter Scott": https://mypoeticside.com/poets/sir-walter-scott-poems
"Stephen Crane": https://mypoeticside.com/poets/stephen-crane-poems
"Thomas Campbell": https://mypoeticside.com/poets/thomas-campbell-poems
"Thomas Chatterton": https://mypoeticside.com/poets/thomas-chatterton-poems
"Thomas Flatman": https://allpoetry.com/Thomas-Flatman
"Thomas Gray": https://mypoeticside.com/poets/thomas-gray-poems
"Thomas Hood": https://mypoeticside.com/poets/thomas-hood-poems
"Thomas Moore": https://mypoeticside.com/poets/thomas-moore-poems
"Thomas Warton": https://mypoeticside.com/poets/thomas-warton-poems
"Walt Whitman": https://mypoeticside.com/poets/walt-whitman-poems
"Walter Savage Landor": https://mypoeticside.com/poets/walter-savage-landor-poems
"Wilfred Owen": https://mypoeticside.com/poets/wilfred-owen-poems
"William Allingham": https://mypoeticside.com/poets/william-allingham-poems
"William Barnes": https://mypoeticside.com/poets/william-barnes-poems
"William Blake": https://mypoeticside.com/poets/william-blake-poems
"William Browne": http://famouspoetsandpoems.com/poets/william_browne
"William Cowper": https://mypoeticside.com/poets/william-cowper-poems
"William Cullen Bryant": https://mypoeticside.com/poets/william-cullen-bryant-poems
"William Ernest Henley": https://mypoeticside.com/poets/william-ernest-henley-poems
"William Lisle Bowles": https://mypoeticside.com/poets/william-lisle-bowles-poems
"William Morris": https://mypoeticside.com/poets/william-morris-poems
"William Shakespeare": https://mypoeticside.com/poets/william-shakespeare-poems
"William Topaz McGonagall": https://mypoeticside.com/poets/william-topaz-mcgonagall-poems
"William Vaughn Moody": https://mypoeticside.com/poets/william-vaughn-moody-poems
"William Wordsworth": https://mypoeticside.com/poets/william-wordsworth-poems

@wweverma1
Copy link

@thundercomb Can I take up the coding part of this issue?

@thundercomb
Copy link
Owner

@wweverma1 Thanks for offering, yes please go ahead: create a new branch from master; then a pull request once you're happy and / or would like a review.
@gserena01 Many thanks for all your efforts on the links, and apologies for the very delayed response. I was slightly concerned that overreliance on a single website (My Poetic Side) could be a probem, but they appear to have been around for quite a while so looking good.

Once all the code is in place I will add the new data and we're good to go.

@nedjo
Copy link

nedjo commented Jul 30, 2022

Some suggested tweaks to data format.

I agree choosing some reference sources is a much easier task than trying to decide on individual sites, which is inevitably going to be fairly arbitrary--one person's list of the best Shakespeare site(s) is going to differ from another's.

Even if we start with a single reference source, we should probably build a data structure that accepts multiple ones.

Of course, there are any number of potential reference sites out there that offer info on various poets. Which should we choose?

I guess the thoughtful approach would be a two-step process:

  1. Establish and document criteria for including a particular source.
  2. Select sources based on those criteria.

Re criteria, I'd suggest to get us started:

  • Includes biographical information on the poet.
  • Includes a list of works.
  • Is produced by a neutral, non-commercial organization such as a nonprofit.
  • Has been in place for at least several years.
  • Is regularly maintained and updated.

It's great to have the list of links for My Poetic Side and having done all that work we should probably run with it. Personally, though, visiting the site, I don't know what to make of it. Who's behind it? I couldn't find any information--no "about us" page or such, at least not as far as I could tell. I'd want to know more before selecting it as a reliable source.

Other candidates? There's obviously Wikipedia. Which has its limitations, of course, but they're ones that at least lots of people are fairly aware of.

The Poetry Foundation is another obvious candidate.

I'd suggest sources rather than info as a key. One reason is it leaves open the future possibility of adding a /source endpoint.

The JSON might look like:

[
  {
    "title": "Not at Home to Callers",
    "author": "Emily Dickinson",
    "lines": [
      "Not at Home to Callers",
      "Says the Naked Tree --",
      "Bonnet due in April --",
      "Wishing you Good Day --"
    ],
    "linecount": "4",
    "sources": {
      "author": [
        {
          "My Poetic Side": "https://mypoeticside.com/poets/emily-dickinson-poems",
        },
        {
          "The Poetry Foundation": "https://www.poetryfoundation.org/poets/emily-dickinson",
        },
        {
          "Wikipedia": "https://en.wikipedia.org/wiki/Emily_Dickinson"
        }
      ]
    }
  }
]

A downside of this format is it will repeat sources for each poem. For example, the query https://poetrydb.org/author/Emily%20Dickinson returns 362 poems. That's a lot of times to list off multiple author URLs. We can't add source information to the response from the author endpoint, /author/[author's name], because the top-level structure there is an array of poems. A possible alternative though would be to add a new endpoint, such as /author/[author's name]/info. A response could look like:

{
  "name": "Emily Dickinson",
  "sources": [
      {
        "My Poetic Side": "https://mypoeticside.com/poets/emily-dickinson-poems",
      },
      {
        "The Poetry Foundation": "https://www.poetryfoundation.org/poets/emily-dickinson",
      },
      {
        "Wikipedia": "https://en.wikipedia.org/wiki/Emily_Dickinson"
      }
  ]
}

@jamogriff
Copy link

@nedjo I like that dedicated endpoint idea for author/[author's name]/info and having a data structure to return multiple sources. That would also allow the backend to order and return those sources in the future by some metric without versioning the API.

If some kind of source ranking is desired in the future I think it would make sense to store each site's domain (and rank) in a dedicated DB table, and a many-to-many table links poet ids, source ids, and URLs. That would provide flexibility to serve non-ranked multiple sources, ranked sources or only a few dedicated domain sources.

@thundercomb
Copy link
Owner

thundercomb commented Jan 15, 2023

Dear all, I have a request for clarification, and a suggestion.

The initial request from @gserena01 was for "a link to a web page with the author's information. Webpage can be authors personal webpages or the webpage from a larger poetry database"

Can this be answered with a short bio, and a description of the poet's poetry and influence?

From the perspective of the purpose of the PoetryDB website it would be preferable, in my view, if the API offered this as text content rather than a link. Reasons for this include that it would:

  • be in keeping with the poetry, which is text content
  • avoid risking broken links, which can happen without warning
  • make consistency of content easier to enforce

Until now it did not seem practical to custom write such information for all 120+ poets on the site. However, having explored this with ChatGPT, my impression is that it is now possible with less effort.

ChatGPT appears able to synthesise information about poets both concisely and with a consistency of style. Here are a couple of examples:

Emily Dickinson was an American poet and writer, born in 1830 in Amherst, Massachusetts and died in 1886. She is considered one of the most important figures in American literature, known for her unique and unconventional style of poetry.

Throughout her life, Dickinson lived a relatively private and reclusive life, rarely leaving her home in Amherst and maintaining few close relationships. Her poems often reflect this solitude and introspection. Many of her poems were influenced by her religious beliefs and the natural world.

Dickinson wrote over 1,800 poems, though only a handful were published during her lifetime. She is known for her unique style, characterized by her use of short lines, unconventional punctuation and capitalization, and her focus on common everyday objects and experiences.

Her most famous poems include "Because I could not stop for Death," "I'm Nobody! Who are you?," "Hope is the thing with feathers," and "There's a certain Slant of light."

Dickinson's poetry was not widely recognized until after her death. Her work was first published in 1890 in a collection edited by Mabel Loomis Todd and Thomas Wentworth Higginson. Since then her poetry has been widely read and studied, influencing many poets and writers. Her legacy is that of a powerful and unique voice in American poetry, who through her innovative and unconventional style, pushed the boundaries of what poetry could be and continues to inspire readers and poets alike.

William Topaz McGonagall was a Scottish poet, born in 1825 in Edinburgh and died in 1902. He is known for his comically bad poetry, which was often ridiculed during his lifetime, but has since become something of a cult classic.

McGonagall worked as a weaver in Dundee, Scotland and later as a performer, reciting his poetry in public. He wrote mainly on serious and historical themes, such as the Tay Bridge Disaster and Queen Victoria's Diamond Jubilee, but his poetry is often criticized for its poor meter, rhyme and overall lack of literary merit.

His most famous poems include "The Tay Bridge Disaster," and "The Famous Tay Whale," both of which were written in the aftermath of the events they describe.

Despite the poor quality of his poetry, McGonagall's legacy is one of a unique and enduring figure in literature. His poetry is often cited as an example of bad poetry, but it has also gained a cult following for its unintentional humor. His poetry is still read and performed today and serves as a reminder of the importance of not taking oneself too seriously.

While it would still be an undertaking to generate and fact check such a summary for each poet, it now seems more doable.

Please let me know your thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants