instead of calling it `flag` how about `is_linear`? That way it is self-documenting.