<p><strong><em>Collocation (XML)</em></strong> is a free, web-based tool designed to run in a browser window. It is easy to use, designed to provide a <strong>list of words</strong> surrounding a user-specified word or pattern (in this case, a regular expression) within a document, either hosted at a web address or uploaded from the user's files.</p> <p>Users may set the <strong>context</strong> to words, lines or sentences, specify what length of that context to look within (ex: 5 words, 2 sentences), or limit the search only to words appearing within specified XML tags, attributes or values. Searching a <strong>pattern</strong> rather than a word requires skill with <strong>regular expressions</strong> and is thus not accessible to all users.</p> <p>Other features include an option to exclude words appearing in the Glasgow <strong>stop list</strong> from the list of collocates, output formats including <strong>XML Tree</strong> and<strong> tab delimited</strong>, plus the choice to sort collocates by frequency, alphabetically or by <strong>Z-score</strong>.</p> <p>This tool has only two minor <strong>problems</strong>. When the tab delimited output is selected, the tool may not process some characters correctly; please see List Words (Plain Text) for examples. When counting unique words among the collocates, the tool includes blank spaces, some punctuation and words immediately following a single quote (ex: 'but); users are advised to adjust tool counts accordingly.</p> <p><strong><em>In summation, Collocation (XML) is an effective way to determine all words surrounding a given word or pattern.</em></strong> Versions are also available for HTML and plain text documents.</p>