All Projects → wapmorgan → Morphos-Blade

wapmorgan / Morphos-Blade

Licence: other
Morphos adapter for Blade

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Morphos-Blade

kirby-blade
Enable Blade for Kirby 3
Stars: ✭ 14 (-56.25%)
Mutual labels:  blade
jigsaw-docs-template
Starter template for a documentation site, using Jigsaw by Tighten
Stars: ✭ 39 (+21.88%)
Mutual labels:  blade
think-blade
Blade template engine with thinkphp 5. (component & slot support)
Stars: ✭ 34 (+6.25%)
Mutual labels:  blade
frog
Frog is an integration of memory-based natural language processing (NLP) modules developed for Dutch. All NLP modules are based on Timbl, the Tilburg memory-based learning software package.
Stars: ✭ 70 (+118.75%)
Mutual labels:  morphology
lemma
A Morphological Parser (Analyser) / Lemmatizer written in Elixir.
Stars: ✭ 45 (+40.63%)
Mutual labels:  morphology
freechat
🐶 online anonymous chat application.
Stars: ✭ 31 (-3.12%)
Mutual labels:  blade
ImageMorphology.jl
Morphological operations for image processing
Stars: ✭ 23 (-28.12%)
Mutual labels:  morphology
retinal-exudates-detection
exudates detection using hybrid approach (Image Morphology & Machine Learning)
Stars: ✭ 53 (+65.63%)
Mutual labels:  morphology
laravel-pagetitle
Laravel package for managing page titles in blade views
Stars: ✭ 19 (-40.62%)
Mutual labels:  blade
DeepMorphy
Морфологический анализатор для русского языка на C# для .NET
Stars: ✭ 23 (-28.12%)
Mutual labels:  morphology
OpenHebrewBible
Open Hebrew Bible Project; aligning BHS with WLC; bridging ETCBC, OpenScriptures & Berean data on Hebrew Bible
Stars: ✭ 43 (+34.38%)
Mutual labels:  morphology
mlmorph
Malayalam Morphological Analyzer using Finite State Transducer
Stars: ✭ 40 (+25%)
Mutual labels:  morphology
laravel-easyblade
Create an easier & readable Blade (view) in Laravel with EasyBlade
Stars: ✭ 64 (+100%)
Mutual labels:  blade
awesome-cytodata
A curated list of awesome cytodata resources
Stars: ✭ 40 (+25%)
Mutual labels:  morphology
UniqueBible
A cross-platform bible application, integrated with high-quality resources and amazing features, running offline in Windows, macOS and Linux
Stars: ✭ 61 (+90.63%)
Mutual labels:  morphology
treestoolbox
TREES toolbox
Stars: ✭ 20 (-37.5%)
Mutual labels:  morphology
RivWidthCloudPaper
A Google Earth Engine based algorithm that extracts river centerlines and widths from satellite images
Stars: ✭ 62 (+93.75%)
Mutual labels:  morphology
edge
[READ ONLY] A Blade compatible template engine with much extendable interface.
Stars: ✭ 26 (-18.75%)
Mutual labels:  blade
blade-simple-icons
A package to easily make use of Simple Icons in your Laravel Blade views.
Stars: ✭ 12 (-62.5%)
Mutual labels:  blade
modular-assemblies
[NeurIPS 2019] Code for the paper "Learning to Control Self-Assembling Morphologies: A Study of Generalization via Modularity"
Stars: ✭ 98 (+206.25%)
Mutual labels:  morphology

MorphosBlade

На русском языке - README-ru.

Composer package Latest Stable Version License

Adds a @plural, @name, @numeral, @ordinal and @money tags to Laravel's Blade templating engine for Russian pluralization and declenation.

<div>
@plural(252, 'новость') от @name('Иванов Иван Иванович', 'родительный')
@numeral(565, 'сообщение', 'n') и @money(123.50, '') за Ваше отсутствие.
Это Ваше @ordinal(351, 'n') посещение нашего сайта за сегодня!
</div>

Will be compiled in

<div>
252 новости от Иванова Ивана Ивановича
пятьсот шестьдесят пять сообщений и 123 рубля 50 копеек за Ваше отсутствие
Это Ваше триста пятьдесят первое посещение нашего сайта за сегодня!
</div>

Most popular directives:

  • @plural(count, noun) - Get plural form of word. Just pass count of objects and noun.

    @plural(244, 'элемент')
  • @money(value, currency) - Get money formatted as text string. Just pass value and currency (₽ or $ or € or ₴ or £).

    @money(1000.10, '$')
  • @numeral(number) - Get numeral of a number. Just pass number.

    @numeral(344)
  • @ordinal(number) - Get ordinal of a number. Just pass number.

    @ordinal(500)
  • @name(name, case) - Get any case of fullname with gender detection. Just pass name and case (именительный, родительный, дательный, винительный, творительный, предложный)

    @name('Коленко Сергей Аркадьевич', 'dativus')

Additional directives:

  • @name(name, gender, case) - Get any case of fullname. Just pass name, gender (f or m or null) and case (именительный, родительный, дательный, винительный, творительный, предложный). Use this directive if middle name is unknown and gender detection can make wrong decision.

    @name('Филимонов Игорь', 'm', 'dativus')
  • @numeral(number, gender) - Get numeral of a number. Just pass number and gender (m or f or n) to use correct form of gender-dependent words (один/одно/одна, два/две).

    @numeral(121, 'n')
  • @numeral(number, noun) - Get numeral and a pluralized noun. Just pass number and noun. It's just a shortcut to @numeral(3) @plural(3, 'поле')

    @numeral(3, 'поле')
  • @numeral(number, noun, gender) - Get numeral and a pluralized noun. Just pass number, noun and gender (m or f or n) to use correct form of gender-dependent words (один/одно/одна, два/две).

    @numeral(101, 'сообщение', 'n')
  • @ordinal(number, gender) - Get ordinal of a number. Just pass number and gender (m or f or n) to use correct form of gender-dependent words (первый/первое/первая, второй/второе/вторая, etc).

    @ordinal(351, 'n')

Installation

Get the Package

composer require wapmorgan/morphos-blade

Register the Service Provider

Open up your app.php in your config folder, and add the following line to your providers list like:

'providers' => array(
    ...
    morphos\MorphosBladeProvider::class
)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].