0151 355 4555



Checks to see if a name is usable or if it is Salacious, Random or Blank. This method returns a string indicating the status of the supplied name. The return value can be one of the following values:

  • "" (empty string) - the name is not salacious
  • "IncompleteName" - not enough name information has been supplied
  • "RandomName" - the name appears to have been entered by hitting random keys
  • "SalaciousName" - the name is flagged against our blacklist of known salacious words

View all Unusable / Salacious Name (part of the identity validation suite) methods

Code Samples

<!-- Import the Integr8 Ajax API -->
<!-- NOTE: Get your own API key to use in the following script tag from: -->
<!-- http://www.data-8.co.uk/integr8/Admin/Ajax.aspx -->
<script src="http://webservices.data-8.co.uk/Javascript/Loader.ashx?key=your-api-key" type="text/javascript">

<script type="text/javascript">

function loadIntegr8() {
  // Load the SalaciousName Integr8 service

function IsUnusableName(name) {
  /// <param name="name">data8.name. Set up the Title, Forename, MiddleName, Surname properties before calling this method.</param>
  var salaciousname = new data8.salaciousname();

function showIsUnusableNameResult(result) {
  // Check that the call succeeded, and show the error message if there was a problem.
  if (!result.Status.Success) {
    alert('Error: ' + result.Status.ErrorMessage);
  else {
    // TODO: Process method results here.
    // Results can be extracted from the following fields:
    // result.Result