Tags is a powerful Coda Pack designed to help you streamline and refine your text by automatically tagging and filtering out unwanted words. Whether you're working on large datasets or need to extract meaningful keywords from text, Tags simplifies the process with customizable word exclusions.
Key Features
Customizable Word Categories: Filter out specific categories of words like numbers, prepositions, pronouns, and more.
User-Defined Exclusions: Exclude any additional words that you want to ignore.
Effortless Tagging: Quickly convert raw text into meaningful tags for analysis, organization, or SEO optimization.
Getting Started
Installation
To install the Tags Pack:
Open your Coda document.
Go to the "Explore" section in the sidebar.
Search for "Tags" in the Coda Packs gallery.
Click "Install" to add the Pack to your document.
Basic Usage
The core functionality of the Tags Pack is the ProcessText formula, which allows you to process text by excluding specific word categories and custom words.
Formula: ProcessText
Parameters
text (String) - The input text to process.
excludeCategories (StringArray, Optional) - Categories of words to exclude, such as ["numbers", "prepositions"].
customExcludes (StringArray, Optional) - Custom words to exclude from the text, such as ["specificWord1", "specificWord2"].
Returns
A string of processed tags, separated by commas.
Example Usage
Scenario 1: Basic Text Processing
You have the following text:
"The quick brown fox jumps over the lazy dog."
... and you want to remove common words like articles and prepositions to get meaningful tags. Use the ProcessText formula as follows:
=ProcessText("The quick brown fox jumps over the lazy dog.",["articles","prepositions"])
Output:quick, brown, fox, jumps, lazy, dog
Scenario 2: Including Custom Exclusions
You have the same text but want to exclude the word "fox" as well:
=ProcessText("The quick brown fox jumps over the lazy dog.",["articles","prepositions"],["fox"])
Output:quick, brown, jumps, lazy, dog
Scenario 3: Excluding Numbers and Pronouns
If your text includes numbers and pronouns, and you want to exclude them:
=ProcessText("He scored 3 goals in 2 matches.",["numbers","pronouns"])
Output:scored, goals, matches
Supported Word Categories
Here are the categories you can exclude using the excludeCategories parameter:
numbers: Digits like "0", "1", "2", etc.
prepositions: Words like "about", "above", "before", etc.
pronouns: Words like "I", "me", "you", "he", etc.
conjunctions: Words like "and", "but", "or", etc.
auxiliaryVerbs: Words like "am", "is", "are", etc.
articles: Words like "a", "an", "the".
negations: Words like "not", "no", "never".
determiners: Words like "this", "that", "these", etc.
adverbs: Words like "very", "too", "also", etc.
miscellaneous: Other common functional words like "who", "which", "what", etc.
Advanced Tips
Combining Categories: You can exclude multiple categories at once to tailor the output more precisely.
Fine-Tuning: Use the customExcludes parameter to exclude specific words that aren't covered by the default categories.
Use Cases
SEO Optimization: Extract meaningful keywords from content to enhance search engine optimization.
Data Cleaning: Automatically filter out common and unimportant words from datasets.
Content Tagging: Tag articles, blog posts, or any content with relevant keywords for easier organization and retrieval.
Conclusion
Tags is a versatile and powerful tool that enhances your ability to work with text in Coda. By using it, you can streamline your text processing workflows, save time, and focus on what matters most—meaningful content.
If you have any questions or need support, feel free to reach out through the Coda community or contact our support team directly.