It's a democracy in terms of the electoral process, mostly... at least historically. Flawed, but the people select their leaders by election.
It's not really a democracy in terms of political culture and rights. Very weak free speech, right to organize, right to assemble, freedom of the press, etc. They jail a lot of journalists, on charges like "subliminal messages announcing the military coup."
However, it all comes down to this, what happens when people of a democratic country elect a president that has totalitarian tendencies?