djunehor/laravel-grammar

View on GitHub
src/Helpers/helpers.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?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();
    }
}