News for hackers. Stuff that matters.

Show HN: Send a word get a word back

Hi everyone, I recently released a basic API that return the Part of Speech of a given word and also return another word with the same Part of Speech.

You can send up to 10 words at a time via POST request.

You can use it to create random sentences using an structure. Try with the sentence "today is a good day"

    curl -X POST -F "msg=today is a good day" https://victorribeiro.com/pos/word.php

It will give you the POS of each word and a new word with the same POS.

https://victorribeiro.com/pos/

( 2 comments | 3 points | on HN )
Re:Show HN: Send a word get a word back by ZinnZirconium on Sunday August 02, 2020 @05:08PM (#24031766)
I love it! I love how your demo is curl and not a web page frontend!
Re:Show HN: Send a word get a word back by atum47 on Sunday August 02, 2020 @08:25PM (#24032962)
Glad you liked it. You can also send it as json.

curl -X POST https://victorribeiro.com/pos/word.php -H "Content-Type: application/json" -d '{"msg":"today is a good day"}'