MCBoarder289 / shelf-help

MIT License
3 stars 0 forks source link

Improve Logic on free-text searches #14

Open MCBoarder289 opened 1 month ago

MCBoarder289 commented 1 month ago

Examples: This line for the gone away world haraway, nick returns appropriately in Nashville, but doesn't for the handmaiden's tale atwood, margaret because there are more commentaries about the second book. If we prepend them with quotes, then the second book is correct, however, the first book doesn't return because the quotes make it too specific of a search.

Hard to tell if removing characters like hyphens is helpful or not, but that wouldn't be a 100% fix likely. Worth thinking through how robust this could be. We could make multiple ISBN calls, but that's more network traffic.

Currently ok with the current "works most of the time solution", but open to better ones.

https://github.com/MCBoarder289/shelf-help/blob/8ea38340d04d5f54be410d85f23545c4f72bd5de/source/parsers/library.py#L64