News for hackers. Stuff that matters.
Re:Show HN: API to add bad words to English texts by adrianonantua on Tuesday May 20, 2014 @04:18PM (#7774910)
Some tech text becomes very amusing: http://goo.gl/FzVBBv
Re:Show HN: API to add bad words to English texts by taternuts on Tuesday May 20, 2014 @08:12PM (#7775974)
I'd check into the a/an issue (http://i.imgur.com/ZT7Nf57.png), at least for the default/example phrase. Pretty funny though!
Re:Show HN: API to add bad words to English texts by bearlikelion on Tuesday May 20, 2014 @04:40PM (#7775042)
It's a neat tool but I wish it could better parse paragraphs and commas. I also had a few responses with the same curse words three or four times in a block of text making it a fucking boring read.
Re:Show HN: API to add bad words to English texts by espinchi on Tuesday May 20, 2014 @04:49PM (#7775090)
Yep, our dictionaries for adjectives, adverbs and nouns are tiny at the moment
Re:Show HN: API to add bad words to English texts by yzap on Tuesday May 20, 2014 @04:09PM (#7774874)
Pretty neat. From solely using that the prepopulated example input, my main gripe would be that it doesn't get a/an correct in the "cursed up" version of the sentence.
Re:Show HN: API to add bad words to English texts by espinchi on Tuesday May 20, 2014 @04:19PM (#7774913)
Funny we didn't notice that!

Yes, that's true. And that's a fairly poorly written example.

Re:Show HN: API to add bad words to English texts by justizin on Tuesday May 20, 2014 @04:29PM (#7774973)
this comes nowhere-the-fuck near cursing as dynamically as i can. ;)
Re:Show HN: API to add bad words to English texts by b_emery on Tuesday May 20, 2014 @05:48PM (#7775457)
Gives me an idea for a new kind of Turing test ...
Re:Show HN: API to add bad words to English texts by b_emery on Tuesday May 20, 2014 @05:49PM (#7775461)
I was thinking it would be more like readability, but instead of reformatting the html, inserting curse words. How much more fun would cnn.com be?! But a good start!
Re:Show HN: API to add bad words to English texts by mikerg87 on Tuesday May 20, 2014 @04:24PM (#7774940)
This reminds me of the old dialectizer that would rewrite web pages in specific dialects.
Re:Show HN: API to add bad words to English texts by ompemi on Tuesday May 20, 2014 @03:38PM (#7774707)
Interesting, which libraries did you use?
Re:Show HN: API to add bad words to English texts by espinchi on Tuesday May 20, 2014 @03:41PM (#7774725)
Natural Language Toolkit (http://www.nltk.org/) for Python.

The initial code for the "insulter.py", the core, was no more than 150 lines. We'll probably make our repository public at some point so you can check it out.

Re:Show HN: API to add bad words to English texts by ompemi on Tuesday May 20, 2014 @05:03PM (#7775162)
Are the thumbs up/down used to train the system? Looking forward to the code
Re:Show HN: API to add bad words to English texts by espinchi on Tuesday May 20, 2014 @05:05PM (#7775183)
Yes. In a very primitive way, at the moment, just updating the weights for adjectives
Re:Show HN: API to add bad words to English texts by luisobo on Tuesday May 20, 2014 @03:40PM (#7774722)
I assume you meant: "Interesting, which libraries did you use asshole"

http://goo.gl/NBPMm9