What does HackerNews think of compromise?

modest natural-language processing

Language: JavaScript

I’m not sure how much my suggestions answer your original question, but in the pursuit of proper grammatical structure when trying to rewrite speech, compromise [0] might be of use to you. I’ve only played around with it for a few hours at most, but from my limited experience it is a very effective (if verbose and/or a little bloated in it’s API) tool for language analysis. With some tomfoolery I’m confident you could combine it with the GP’s recommendation of alexjs to replace strings slightly-less-naively.

[0] https://github.com/spencermountain/compromise

Hi HN,

In an attempt to learn more about web dev, I've committed to shipping something every month of this year. And since we're in January, early enough for new year resolutions to still be kept, here's my first project.

Smigster[1] lets you type a few words and composites them onto a random royalty-free photo in an attempt to match the contents of the text to the photo. Sometimes it works, sometimes it doesn't.

It uses compromise[2] to extract topics, nouns, etc. from the text and runs a search on Unspash[3] based on a random term to get a photo. It's a toy more than anything else, but it's been incredibly valuable for me to go through this process.

I hope you enjoy it, and if you have any feedback, comments, or feature requests, I'd love to hear about it.

[1] https://smigster.com

[2] https://github.com/spencermountain/compromise

[3] https://unsplash.com/developers

It was primarily: https://github.com/spencermountain/compromise

I thought about doing more intelligent language parsing, but figured for what I was looking to accomplish, this would do.

Then I made a collection of his "trumpisms" -- such as https://www.cnn.com/2017/04/21/politics/donald-trump-preside... and injected the noun.