Return to Snippet

Revision: 9212
at October 26, 2008 01:09 by matthewnovak


Initial Code
from wordnet import *
from wntools import *

def substituteKeyword(description, keyword):
    words = description.split(' ')
    return string.join( map(lambda word: (keyword, word)[morphy(word, 'noun')==None], words), ' ' )

Initial URL
http://www.blackcodeseo.com/keyword-distribution-over-rss-syndication/

Initial Description

                                

Initial Title
Substituting Nouns With A Keyword With WordNet

Initial Tags

                                

Initial Language
Python