grammar/src/main.cpp
// Prints plurals for words with no predefined plural
Prints plurals for words with no predefined plural
Prints plurals for words with no predefined plural
void testNPNeg(const Dictionary &d2, size_t howMany = 100) {
    size_t count = 0;
    for (Noun noun : d2.nouns) {
        if (noun.nominative.plural.empty()) {
            wcout << count << L") " << widen(noun.ns()) << L" "
                  << widen(noun.np(d2, true)) << endl;
            wcout.clear();
            if (++count >= howMany)
                break;
        }
    }
}
void testNPNeg ( const Dictionary & d2 , size_t howMany = 100 ) { size_t count = 0 ; for ( Noun noun : d2 . nouns ) { if ( noun . nominative . plural . empty ( ) ) { wcout << count << L" " << widen ( noun . ns ( ) ) << L" " << widen ( noun . np ( d2 , true ) ) << endl ; wcout . clear ( ) ; if ( ++ count >= howMany ) break ; } } }
Prints plurals for words with no predefined plural
Prints plurals for words with no predefined plural