PHP Classes

File: src/Helpers/helpers.php

Recommend this page to a friend!
  Classes of Zacchaeus Bolaji   Laravel Grammar   src/Helpers/helpers.php   Download  
File: src/Helpers/helpers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Grammar
Detect the type of a given word in a sentence
Author: By
Last change:
Date: 4 years ago
Size: 331 bytes
 

Contents

Class file image Download
<?php

if (! function_exists('part_of_speech')) {
    function
part_of_speech($word)
    {
        return (new \
Djunehor\Grammar\Word())->getWordPartOfSpeech($word);
    }
}

if (!
function_exists('parts_of_speech')) {
    function
parts_of_speech()
    {
        return (new \
Djunehor\Grammar\Word())->getPartsOfSpeech();
    }
}