Forum Posts and the Google NLP API

I’m finding that Userscripts are fine for limited functionality like the earlier examples, but the more complicated ideas required a proper server. This ‘top-down’ screen-scraping approach comes with it’s own set of challenges. For example, while nesting a series of asynchronous Ajax calls that dig deep into posts, I think I set off a mini DoS attack on the Support forum. It lasted for about 10 seconds before I could kill the out of control browser, but it’s ok… I won’t be charging WordPress.com anything for testing their server load capabilities. 😉

I have moved my ‘experiments’ onto a server, and I’m currently exploring Natural Language processing of posts, using Google API’s. The pic below is a copy of a post being analyzed… It shows the identified entities, as well as a Sentiment Level score (Just how happy or unhappy is the author of this post?)

Really, I’m just playing around, but you never know what might come of it! If you have any thoughts or comments, let me know, and if you find this kind of stuff intriguing, then check out the Google NLP API here.

nlp

Userscripts for WordPress.com Support Forums

I posted in the Ideas forum the thought of creating some Userscripts to help streamline the support process. Although my Javascript and Jquery is really rusty, I managed to kludge together a quick script that changes the background color of the post based on the tags found. In the example below, posts with no tags are blue, any ‘delete’ tag found is red, and ‘domain’ tag is green. (There’s another for ‘modlook’ that’s not in the screenshot). This is just a proof of concept, and rather than color coding, could add icons or whatever.

Another idea that should be fairly straightforward… when responding to a post, have a little green light next to the editor that would change to red if someone has responded to the post since you started.

I’m just playing around, but I would like to know if you have any ideas/suggestions/comments.

Other potential scripting going forward;

  • Grab support documentation and display based on tag / content.
  • Auto tagging — Search the content of the post and suggest tags based on common keywords/phrases.
  • Whois any domains found, and markup the post with results.
  • Automatically generate canned responses based on tags found.

 

  • Capture