Guest

Cisco Web Collaboration Option

Configuring the Cisco Collaboration Server Inappropriate Language Filter for Chat

Document ID: 42020




Contents

Introduction
Prerequisites
      Requirements
      Components Used
      Conventions
Dictionary Options
Related Information

Introduction

This document is a supplement to the Cisco Collaboration Administration Guide. This supplement explains how to configure the Cisco Collaboration Server Inappropriate Language Filter for Chat.

Note: The filter is also called a dictionary.

Prerequisites

Requirements

Readers of this document should have knowledge of these topics:

  • Microsoft Windows NT

  • Microsoft Windows 2000

  • Text editing tool

Components Used

The information in this document is based on these software and hardware versions:

  • Cisco Collaboration Server 4.0 and earlier

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

For more information on document conventions, refer to the Cisco Technical Tips Conventions.

Dictionary Options

This section of code sets the spell check options. Configure the dictionary options through a Properties file:

<install_dir>/pub/applets/resource/spellersession.properties

Set the Dictionaries

These three options set the dictionaries used by the spell checker. You need to numerically order the dictionaries (the numbers after MainLexicon). You can put your dictionaries in any order you want, as long as the dictionaries are numbered.

MainLexicon1=Dictionaries/correct.tlx,url,t-

This dictionary performs autofixes on commonly misspelled or misused words, such as "there".

MainLexicon2=Dictionaries/ssceam.tlx,url,t-

This dictionary checks the most commonly used words, such as "I" or "am".

MainLexicon3=Dictionaries/ssceam2.clx,url,c-

Set the Inappropriate Language Check

This dictionary matches all other words in the document against its own list. There are over 100,000 words in this dictionary.

Inappropriate Language Check

You can add a dictionary to your spelling checker that scans outgoing agent messages for inappropriate language. You need to add this line in spellersession.properties:

UserLexicon1=Dictionaries/filth.tlx,url,t

Now, you need to create a text file called filth.tlx, where you identify the words you want the spelling checker to change.

Note: You can call the text file any name you want, just make sure you reference the name correctly.

Use this format in order to create your text file:

The first line of a text lexicon file is a header. The header line is in this format:

#LID lang

The lang code is a decimal number that identifies the language of the words in the lexicon. Refer to the language codes in the Lexicon class for the available languages.

Note: The language codes in the Lexicon class are expressed in hexadecimal.

The lines that follow the header contain the words in the lexicon, one word per line, in no particular order. The lines are formatted as such:

Note: Spaces have been inserted for clarity.

Item

Description

word

The word in the lexicon. This is the word you want to change.

/t

A tab character (\u0009).

action

The action associated with the word:

a: AUTO_CHANGE_ACTION

A: AUTO_CHANGE_PRESERVE_CASE_ACTION

c: COND_CHANGE_ACTION

C: COND_CHANGE_PRESERVE_CASE_ACTION

The action is optional; the default action is "i".

otherword

The replacement word associated with the action. Used only for actions "a", "A", "c", and "C".

Here are some examples of how the lines must appear.  There is a tab between the word that you want replaced and the replacement word.  The "A" signifies what action to take from the table:

#LID 24941

damn    Adarn 

hell    Aheck 

filthword    Agoodword 

filthdelete    A

AUTO_CHANGE_ACTION=

This option changes and capitalizes the selected word.

AUTO_CHANGE_PRESERVE_CASE_ACTION=

This option changes the selected word and preserves the case.

COND_CHANGE_ACTION=

This option conditionally changes and capitalizes the selected word.

COND_CHANGE_ACTION_PRESERVE_CASE_ACTION=

This option conditionally changes the selected word and preserves the case.


Related Information



Updated: Jul 14, 2005 Document ID: 42020