This website uses cookies and similar technologies to understand visitors' experiences. By continuing to use this website, you accept our use of cookies and similar technologies,Terms of Use, and Privacy Policy.

Jun 21 2010 - 03:58 PM
The Journey Begins
The journey to create better authoring tools for Pressible, that is. I am currently working on a Wordpress plugin codenamed Rec Tags Redux. It's top-secret official name will be unveiled at release. The purpose of this plugin is ultimately to modify the "Post Tags" box in the "New Post" page so that it recommends tags for your post based on a) the actual content of the post and b) the existing tags in your Wordpress database (if they appear in your post). In the long run, this may encourage people to use tags more often (and more correctly) since many Pressible users are unfortunately oblivious or apathetic towards the whole tagging system. On the other hand, users may hate getting recommendations so much that they might vengefully attempt SQL injections to destroy our servers. We'll probably get something in between. DONE: So far, I have the bare bones of the plugin working:
  • Word frequency counter to determine the most common words in the post
  • Retrieval of tags from database and checking for a match in post content.
TO DO: This is the big section:
  • Greatly improve word frequency counter so it effectively becomes a "phrase frequency" counter, able to find and count phrases that are arbitrarily long. This is important because many tags are in fact phrases and not single words. For example, we probably want to count the frequency of the phrase "Social Media" more than the frequencies of the words "Social" and "Media".
  • Add trimming and explosion to database tags (Now that sounds ridiculous... trimming and explosion). Trimming is essentially removing unnecessary white space, plurals, and slight variations on words (for example, we want an instance of the word "download" in the post to register as a hit when being matched to a "downloads" tag). Explosion separates a phrase into its constituent words, therefore it's an effective reversal of the "phrase frequency" counter functionality. This is important because if we have a tag "Adobe Photoshop," we want that to match an instance of "Photoshop" in the post. For more information about this, consult the images below.
  • Add the functionality of associating a given tag with the post being written/edited (so far RTR just "recommends" in plain text).
  • Actually attain the lofty goals described above.
Reference Images: [caption id="attachment_365" align="alignright" width="150" caption="explosion"][/caption] [caption id="attachment_364" align="aligncenter" width="150" caption="trimming"][/caption] Final Note This plugin is based on CyberNet's Recommended Tags plugin which is currently out of date and incompatible with Wordpress 3.0. This revision aims to fix its predecessor and surpass its greatness. Peace, jimmy
Posted in: Pressible Development|By: Jimmy OHiggins|306 Reads