MediaWiki master
Wikimedia\Leximorph\Provider\FormalityIndex Class Reference

FormalityIndex. More...

Collaboration diagram for Wikimedia\Leximorph\Provider\FormalityIndex:

Public Attributes

 $indexesCache = self::$indexesCache
 
if(array_key_exists($this->langCode, $indexesCache)) if(str_contains( $this->langCode, '-')) return
 

Detailed Description

FormalityIndex.

Loads and caches formality indexes from a JSON file.

Since
1.45
Author
Doğu Abaris (abari.nosp@m.s@nu.nosp@m.ll.ne.nosp@m.t)
Note
https://www.gnu.org/copyleft/gpl.html GPL-2.0-or-later

Definition at line 21 of file FormalityIndex.php.

Member Data Documentation

◆ $indexesCache

Wikimedia\Leximorph\Provider\FormalityIndex::$indexesCache = self::$indexesCache

Definition at line 62 of file FormalityIndex.php.

◆ return

if(array_key_exists( $this->langCode, $indexesCache)) if (str_contains($this->langCode, '-')) Wikimedia\Leximorph\Provider\FormalityIndex::return

Definition at line 80 of file FormalityIndex.php.


The documentation for this class was generated from the following file: