louismullie/treat

View on GitHub
lib/treat/config/data/linguistics.rb

Summary

Maintainability
A
0 mins
Test Coverage
{
  categories: 
    ['adjective', 'adverb', 'noun', 
    'verb', 'interjection', 'clitic', 
    'coverb', 'conjunction', 'determiner', 
    'particle', 'preposition', 'pronoun', 
    'number', 'symbol', 'punctuation',
    'complementizer'],
  
  punctuation: {
    punct_to_category: {
    '.' => 'period',
    ',' => 'comma',
    ';' => 'semicolon',
    ':' => 'colon',
    '?' => 'interrogation',
    '!' => 'exclamation',
    '"' => 'double_quote',
    "'" => 'single_quote',
    '$' => 'dollar',
    '%' => 'percent',
    '#' => 'hash',
    '*' => 'asterisk',
    '&' => 'ampersand',
    '+' => 'plus',
    '-' => 'dash',
    '/' => 'slash',
    '\\' => 'backslash',
    '^' => 'caret',
    '_' => 'underscore',
    '`' => 'tick',
    '|' => 'pipe',
    '~' => 'tilde',
    '@' => 'at',
    '[' => 'bracket',
    ']' => 'bracket',
    '{' => 'brace',
    '}' => 'brace',
    '(' => 'parenthesis',
    ')' => 'parenthesis',
    '<' => 'tag',
    '>' => 'tag'
  }}
}