-
Notifications
You must be signed in to change notification settings - Fork 0
/
ETRDefault.cs
48 lines (42 loc) · 899 Bytes
/
ETRDefault.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Created by SharpDevelop.
* User: dao
* Date: 07.05.2009
* Time: 7:09
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections;
namespace ETRTranslator
{
/// <summary>
/// Description of ETRDefault.
/// </summary>
public class ETRDefault : IModule
{
public ETRDefault()
{
}
public Slovo Analyze(Predlozhenie pr,int place)
{
Slovo analyzed = pr[place];
return analyzed;
}
public Slovo Translate(Predlozhenie pr,int place)
{
Slovo analyzed = pr[place];
Dictionary dict = new Dictionary();
ArrayList al = dict.GetStrict(analyzed.eSlovo);
if(al.Count > 0)
{
analyzed.rSlovo = ((DictSlovo)al[0]).Rus;
}
else
{
analyzed.rSlovo = analyzed.eSlovo;
}
return analyzed;
}
}
}