wikitongues-db 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ReferenceTables, a as ResolvedIso639_3, b as ResolvedGlottolog, c as ResolvedBcp47, S as StandardsData, d as ResolvedStandards, L as LanguageData, e as SpeakerData, P as ProvenanceData, T as TranscriptionData, f as RawMetadataData, V as VideoData, F as FilterOptions, g as LanguageSummary, C as CountrySummary, h as SpeakerSummary, D as DatasetStats } from './dataset-DNYcpFFZ.mjs';
2
- export { G as GlottologEntry, I as IanaLanguageEntry, i as IanaSubtagEntry, j as IanaVariantEntry, k as Iso639_3Entry, l as dataset } from './dataset-DNYcpFFZ.mjs';
1
+ import { R as ReferenceTables, a as ResolvedIso639_3, b as ResolvedGlottolog, c as ResolvedBcp47, S as StandardsData, d as ResolvedStandards, L as LanguageData, e as SpeakerData, P as ProvenanceData, T as TranscriptionData, f as RawMetadataData, V as VideoData, F as FilterOptions, g as LanguageSummary, C as CountrySummary, h as SpeakerSummary, D as DatasetStats } from './dataset-Bh9bZBtJ.mjs';
2
+ export { G as GlottologEntry, I as IanaLanguageEntry, i as IanaSubtagEntry, j as IanaVariantEntry, k as Iso639_3Entry, l as dataset } from './dataset-Bh9bZBtJ.mjs';
3
3
 
4
4
  /**
5
5
  * Deterministic hydration of the persisted ontological anchor keys
@@ -193,6 +193,10 @@ declare class VideoCollection implements Iterable<Video> {
193
193
  toArray(): Video[];
194
194
  slice(start?: number, end?: number): VideoCollection;
195
195
  includes(item: Video | string): boolean;
196
+ /**
197
+ * Check if any video in the collection matches the given language query.
198
+ */
199
+ hasLanguage(query: string): boolean;
196
200
  get isEmpty(): boolean;
197
201
  get ids(): string[];
198
202
  get urls(): string[];
@@ -416,6 +420,11 @@ declare class WikitonguesDB {
416
420
  * classifications, Glottolog / ISO names and speaker claims.
417
421
  */
418
422
  findByLanguage(languageQuery: string, includeAdditional?: boolean): VideoCollection;
423
+ /**
424
+ * Check if the database contains any video matching the language query
425
+ * (by ISO 639-3, ISO 639-1, BCP 47, macrolanguage, or name).
426
+ */
427
+ hasLanguage(query: string): boolean;
419
428
  /**
420
429
  * Shortcut method to filter videos by common criteria.
421
430
  */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as ReferenceTables, a as ResolvedIso639_3, b as ResolvedGlottolog, c as ResolvedBcp47, S as StandardsData, d as ResolvedStandards, L as LanguageData, e as SpeakerData, P as ProvenanceData, T as TranscriptionData, f as RawMetadataData, V as VideoData, F as FilterOptions, g as LanguageSummary, C as CountrySummary, h as SpeakerSummary, D as DatasetStats } from './dataset-DNYcpFFZ.js';
2
- export { G as GlottologEntry, I as IanaLanguageEntry, i as IanaSubtagEntry, j as IanaVariantEntry, k as Iso639_3Entry, l as dataset } from './dataset-DNYcpFFZ.js';
1
+ import { R as ReferenceTables, a as ResolvedIso639_3, b as ResolvedGlottolog, c as ResolvedBcp47, S as StandardsData, d as ResolvedStandards, L as LanguageData, e as SpeakerData, P as ProvenanceData, T as TranscriptionData, f as RawMetadataData, V as VideoData, F as FilterOptions, g as LanguageSummary, C as CountrySummary, h as SpeakerSummary, D as DatasetStats } from './dataset-Bh9bZBtJ.js';
2
+ export { G as GlottologEntry, I as IanaLanguageEntry, i as IanaSubtagEntry, j as IanaVariantEntry, k as Iso639_3Entry, l as dataset } from './dataset-Bh9bZBtJ.js';
3
3
 
4
4
  /**
5
5
  * Deterministic hydration of the persisted ontological anchor keys
@@ -193,6 +193,10 @@ declare class VideoCollection implements Iterable<Video> {
193
193
  toArray(): Video[];
194
194
  slice(start?: number, end?: number): VideoCollection;
195
195
  includes(item: Video | string): boolean;
196
+ /**
197
+ * Check if any video in the collection matches the given language query.
198
+ */
199
+ hasLanguage(query: string): boolean;
196
200
  get isEmpty(): boolean;
197
201
  get ids(): string[];
198
202
  get urls(): string[];
@@ -416,6 +420,11 @@ declare class WikitonguesDB {
416
420
  * classifications, Glottolog / ISO names and speaker claims.
417
421
  */
418
422
  findByLanguage(languageQuery: string, includeAdditional?: boolean): VideoCollection;
423
+ /**
424
+ * Check if the database contains any video matching the language query
425
+ * (by ISO 639-3, ISO 639-1, BCP 47, macrolanguage, or name).
426
+ */
427
+ hasLanguage(query: string): boolean;
419
428
  /**
420
429
  * Shortcut method to filter videos by common criteria.
421
430
  */