-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumberWordsVocabulary.cs
More file actions
44 lines (37 loc) · 1.51 KB
/
NumberWordsVocabulary.cs
File metadata and controls
44 lines (37 loc) · 1.51 KB
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
namespace OneBitSoftware.Slovom.Currencies;
/// <summary>
/// Represents a vocabulary collection for converting numbers and currency into words.
/// </summary>
/// <remarks>
/// This class defines the language-specific words used for numbers, single digits, tens,
/// hundreds, and numbers between zero and nineteen. It is intended to support currency and
/// numeric transformation into word representations.
/// </remarks>
public sealed record NumberWordsVocabulary
{
internal NumberWordsVocabulary() { }
/// <summary>
/// Gets or inits the word representation for the singular form of the minor currency unit.
/// </summary>
public required string MinorCurrencyUnitSingular { get; init; }
/// <summary>
/// Gets or inits the words for numbers from zero to nineteen.
/// </summary>
public required string[] NumbersZeroToNineteen { get; init; }
/// <summary>
/// Gets or inits the words for single digits in neutral form.
/// </summary>
public required string[] SingleDigitsNeutral { get; init; }
/// <summary>
/// Gets or inits the words for numbers from ten to nineteen.
/// </summary>
public required string[] NumbersTenToNineteen { get; init; }
/// <summary>
/// Gets or inits the words for multiples of ten.
/// </summary>
public required string[] TensMultiples { get; init; }
/// <summary>
/// Gets or inits the words for multiples of a hundred.
/// </summary>
public required string[] HundredsMultiples { get; init; }
}