PHP code example of crosseno / language-en

1. Go to this page and download the library: Download crosseno/language-en library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

crosseno / language-en example snippets


use Crosseno\Core\ResourceLimits;
use Crosseno\LanguageEn\EnglishLanguagePack;

$pack = EnglishLanguagePack::load(ResourceLimits::standard());
$gridText = $pack->normalizer()->normalize('ice cream'); // ICECREAM
$cells = $pack->tokenizer()->tokenize($gridText);

// Full runtime composition, without parsing artifacts in the application:
$catalog = $pack->catalog();
$solverIndex = $pack->solverIndex();
$ordinalKeys = $pack->answerKeysByOrdinal();
$identity = $pack->runtimeIdentity();
$coverage = $pack->clueCoverage();