예제 #1
0
        public LanguageEntry(CultureData language)
        {
            if (language == null)
            {
                throw new ArgumentNullException(nameof(language));
            }

            this.language = language;
        }
예제 #2
0
        public Word(string name, CultureData language)
            : base(language)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException(nameof(name));
            }

            this.name = name;
        }
        public LanguageWordList(CultureData language, IReadOnlyList <string> words)
            : base(language)
        {
            if (words == null)
            {
                throw new ArgumentNullException(nameof(words));
            }

            this.words = words;
        }
 protected abstract TResult BuildResult(CultureData language, IReadOnlyList <string> words);
 protected override Translation BuildResult(CultureData language, IReadOnlyList <string> words)
 {
     return(new Translation(language, words));
 }
 public GrapeVariety(CultureData language, IReadOnlyList<string> words)
     : base(language, words)
 {
 }
예제 #7
0
 protected override LinkedData BuildResult(CultureData language, IReadOnlyList <string> words)
 {
     return(new WikipediaCategory(language, words));
 }
예제 #8
0
 public InstanceOf(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
예제 #9
0
 protected override LinkedData BuildResult(CultureData language, IReadOnlyList <string> words)
 {
     return(new PnnsGroup(language, words, this.group));
 }
예제 #10
0
 public Synonym(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
예제 #11
0
 protected override Synonym BuildResult(CultureData language, IReadOnlyList <string> words)
 {
     return(new Synonym(language, words));
 }
예제 #12
0
 public Label(CultureData language, IReadOnlyList<string> words)
     : base(language, words)
 {
 }
예제 #13
0
 public PnnsGroup(CultureData language, IReadOnlyList<string> words, int group)
     : base(language, words)
 {
     PnnsGroupValidator.EnsureIsInRange(group);
     this.group = group;
 }
예제 #14
0
 protected LinkedData(CultureData language, IReadOnlyList<string> words)
     : base(language, words)
 {
 }
예제 #15
0
 public Country(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
예제 #16
0
 public Region(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
 public static IEnumerable<TranslationSet> HasNoEntryInCulture(this IEnumerable<TranslationSet> source, CultureData culture)
 {
     return source.Where(ts => !ts.Translations.Any(t => t.Language == culture));
 }
 public GrapeVariety(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
 public WikidataCategory(CultureData language, IReadOnlyList<string> words)
     : base(language, words)
 {
 }
예제 #20
0
 public InstanceOf(CultureData language, IReadOnlyList<string> words)
     : base(language, words)
 {
 }
예제 #21
0
 public Wikidata(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
예제 #22
0
 public PnnsGroup(CultureData language, IReadOnlyList <string> words, int group)
     : base(language, words)
 {
     PnnsGroupValidator.EnsureIsInRange(group);
     this.group = group;
 }
 public WikipediaCategory(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
예제 #24
0
 protected override LinkedData BuildResult(CultureData language, IReadOnlyList <string> words)
 {
     return(new Region(language, words));
 }
예제 #25
0
 public StopWords(CultureData language, IReadOnlyList <string> words)
     : base(language, words)
 {
 }
 protected override LinkedData BuildResult(CultureData language, IReadOnlyList<string> words)
 {
     return new InstanceOf(language, words);
 }
예제 #27
0
 public Country(CultureData language, IReadOnlyList<string> words)
     : base(language, words)
 {
 }