/ Published in: Python
URL: http://www.blackcodeseo.com/keyword-distribution-over-rss-syndication/
Expand |
Embed | Plain Text
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), ' ' )
You need to login to post a comment.
