An open API service indexing awesome lists of open source software.

https://github.com/samdutton/sonnet-search

Instant search for Shakespeare's Sonnets
https://github.com/samdutton/sonnet-search

Last synced: 12 months ago
JSON representation

Instant search for Shakespeare's Sonnets

Awesome Lists containing this project

README

          

# Shakespeare Sonnet Search

Instant search for William Shakespeare's sonnets.

Try it out at [samdutton.github.io/sonnet-search](https://samdutton.github.io/sonnet-search).

## How to use it

As you enter text in the input box at the top of the page, sonnets containing the text will immediately be displayed.

Search is not case sensitive. Note that a minimum of two characters must be entered. Line numbers are shown to the right of each line.

Click any line to display the whole sonnet from which it is taken.

Click on a sonnet to display a Quarto 1 facsimile of it at the [University of Victoria](http://www.uvic.ca/) Internet Shakespeare Editions website.

## How does it work?

The sonnets are stored in JSON format in json/sonnets.js.

The first time the app is first opened, the JSON is parsed and the sonnets are stored locally in a Web SQL database.

Whenever query text is entered or altered, the database is queried and any results are formatted and displayed.

## Feedback

Please send bug reports, comments or feature requests to [samdutton@gmail.com](mailto:samdutton@gmail.com).

For more information, please visit my website [samdutton.com](mailto:samdutton@gmail.com) or my blog at [samdutton.wordpress.com](http://samdutton.wordpress.com).