Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429582
hy.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
hy.js
View Options
/*!
* Armenian (Հայերեն) language functions
*/
mw
.
language
.
convertGrammar
=
function
(
word
,
form
)
{
const
grammarForms
=
mw
.
language
.
getData
(
'hy'
,
'grammarForms'
);
if
(
grammarForms
&&
grammarForms
[
form
]
)
{
return
grammarForms
[
form
][
word
];
}
// These rules are not perfect, but they are currently only used for site names so it doesn't
// matter if they are wrong sometimes. Just add a special case for your site name if necessary.
switch
(
form
)
{
case
'genitive'
:
// սեռական հոլով
if
(
word
.
slice
(
-
1
)
===
'ա'
)
{
word
=
word
.
slice
(
0
,
-
1
)
+
'այի'
;
}
else
if
(
word
.
slice
(
-
1
)
===
'ո'
)
{
word
=
word
.
slice
(
0
,
-
1
)
+
'ոյի'
;
}
else
if
(
word
.
slice
(
-
4
)
===
'գիրք'
)
{
word
=
word
.
slice
(
0
,
-
4
)
+
'գրքի'
;
}
else
{
word
=
word
+
'ի'
;
}
break
;
}
return
word
;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 17:47 (8 h, 57 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c8/e1/1fafd356637ae5071c8854d52f37
Default Alt Text
hy.js (865 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment