defaultPunctuation top-level constant

List<String> const defaultPunctuation

Default punctuation characters from multiple languages.

Includes punctuation from Latin, CJK, and other writing systems:

  • Basic punctuation: comma, period, colon, semicolon
  • Brackets and quotes: (), [], {}, "", ''
  • CJK punctuation: 、,。:;【】《》
  • Currency and symbols: $, ¥, *, /, , &, %, @, #, ^
  • Word separators: apostrophe ('), hyphen (-)

These characters are converted to spaces by default (when WordCountConfig.punctuationAsBreaker is true), or removed when false.

Implementation

const List<String> defaultPunctuation = [
  ',',
  ',',
  '.',
  '。',
  ':',
  ':',
  ';',
  ';',
  '[',
  ']',
  '【',
  ']',
  '】',
  '{',
  '{',
  '}',
  '}',
  '(',
  '(',
  ')',
  ')',
  '<',
  '《',
  '>',
  '》',
  '\$',
  '¥',
  '!',
  '!',
  '?',
  '?',
  '~',
  '~',
  "'",
  "'",
  '"',
  '"',
  '"',
  '*',
  '/',
  '\\',
  '&',
  '%',
  '@',
  '#',
  '^',
  '-', // Added hyphen to default punctuation
  '、',
  '、',
  '、',
  '、',
];