It seems Norwegian is removed in the class RemoveInvalidLanguages.
common_words has "no" which is also "Norwegian". So Norwegian language is detected, but later removed by this.
(Danish is also not working, but not looked into it, Id guess its the same cause)
I have not made a fix, since im not sure how you want it fixed. Not sure removing "no" from common_words is the way to go.
See below for execution of script with output.
It seems Norwegian is removed in the class
RemoveInvalidLanguages
.common_words
has"no"
which is also "Norwegian". So Norwegian language is detected, but later removed by this. (Danish is also not working, but not looked into it, Id guess its the same cause)I have not made a fix, since im not sure how you want it fixed. Not sure removing
"no"
fromcommon_words
is the way to go.Norwegian NOK:
Swedish OK:
Danish NOK: