GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REGEXP::PROFANITY::US (3)

.ds Aq ’

NAME

Regexp::Profanity::US - Simple functions for detecting U.S. profanity

CONTENTS

SYNOPSIS



  use Regexp::Profanity::US;

  my $degree  = definite; # or ambiguous;

  my $profane = profane     ($string, $degree);
  my @profane = profane_list($string, $degree);



DESCRIPTION

This module provides an API for checking strings for strings containing various degrees of profanity, per US standards.

FUNCTIONS

CW$profane_word = profane($string, CW$degree)

Check $string for profanity of degree $degree, where $degree eq ’definite’ or $degree eq ’ambiguous’

For positive matches, returns TRUE, with TRUE being the first match in the string.

For negative matches, FALSE is returned.

CW@profane_word = profane_list($string, CW$degree)

The sub returns a list of all profane words found in $string, or an empty list if none were found.

EXPORT

profane() and profane_list

DEPENDENCIES

Regexp::Common and Regexp::Common::profanity_us

OTHER

There is another module supporting profanity checking, namely Regexp::Common::profanity, but many of the profane words were of European origin and I did not find them profane at all from an American standpoint.

AUTHOR

T. M. Brannon, tbone@cpan.org

Refactored by Matthew Simon Cavalletto, evo@cpan.org.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REGEXP::PROFANITY::US (3) 2011-08-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.