How do I make this function apply to every word in a file?
<p>I won't go into unnecessary details, but I have a function <code>convert</code> that transforms words into something else. Right now I want it to read a file and transform every word. Assume I already have the code that reads the file and transforms. The only problem is that convert seems to only work in very general terms for the argument I give it. For example, I write</p>

<pre><code>return convert("string")
</code></pre>

<p>and every word in the file is transformed into the convert of "string." This is not what I'm trying to do.</p>

<p>What I want is for convert to be appropriately applied to every individual word. How can I make it so convert takes on a parameter other than a string I give it?</p>
