import { grammarType, LanguageType } from "./variables";

export interface gramaticalDetail {
    type: grammarType,
    description: string,
    context: Array<string>,
    examples: Array<string>,
}

export interface Word {
    //_id is present by default in the DB
    name: string,
    languageType: LanguageType,
    pronounciation?: {
        text: string,
        audio?: string,
    },
    similarWords?: Array<string>,
    oppositeWords?: Array<string>,
    grammaticalDetails: Array<gramaticalDetail>,
}